facelets Questions
2
Solved
I have a Facelets view as below:
<h:form id="f1">
<p:panelGrid id="p1" columns="2">
<p: inputText value="Distance Travelled::/><p:inputText value="#{airTransportUsage.distanc...
Vulcanism asked 27/9, 2012 at 10:26
3
I am doing a project using JSF 2.0 and Facelets.
I have read documentations that the <ui:debug/> tag gives valuable troubleshooting information upon pressing CTRL-SHIFT-D. But this never wor...
2
Solved
Does anyone know a way to get the index of the element in a ui:repeat facelets tag?
<ui:repeat id="topTenGrd" var="dream" value="#{dreamModifyBean.topDreams}">
<h:outputText class="dream...
3
Solved
How can one define a default value for a facelet template parameter?
Consider the following element using a template parameter:
<h:outputText value="#{templParam}"></h:outputText>
Th...
3
Solved
I've the following code snippet in my Facelet:
<h:commandLink id="cmdbtn">
<f:ajax event="click" execute="@form"
listener="#{screenShotBean.takeScreenshot}" />
</h:commandLink>...
Lemieux asked 4/2, 2013 at 17:56
2
Solved
I am developing an application for FB Login with website using Javascript and JSF. I have posted my code at here. The problem is, when I run my application it does't show the JSF page, it instead t...
Lorenelorens asked 28/11, 2013 at 14:0
7
Sorting is not working in datatable in PrimeFaces. Please suggest.
See below my .xhtml file
<h:form>
<p:dataTable style="width: 60%" id="dt1" value="#{bean.list}" var="entry" first="0"...
Commutate asked 16/2, 2011 at 18:47
5
Solved
I'd like to use non breaking spaces in my JSF page. I know, in plain HTML I could use &nbsp; for this and this works fine. However, when I put those &nbsp; in a Facelets page, then it error...
Urethroscope asked 22/10, 2012 at 13:18
2
I'm looking to generate documentation for a custom JSF 2 composite component library. The composite components are not referenced in any faces-config.xml file, but rather the .xhtml files for...
Spa asked 5/3, 2010 at 23:31
10
Solved
How to activate eclipse (3.5, WTP) content assist in .xhtml pages for JSF (1.2) tags, using facelets?
It works in .jsp files, but not xhtml.
I google a lot, and in many places (including MyFaces w...
3
Solved
This is my source code file in Eclipse:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w...
Presumption asked 26/12, 2012 at 23:37
2
Solved
I am working with JSF/ICEFaces and I need to generate a table from a dynamic tree structure with an unknown (at run-time) number of rows and columns. The table must have width: 100%; so it occupies...
1
Solved
ORIGINAL JSP (WorkItem.jsp)
<c:forEach var="actionItem" items="${workItem.work_action_list}">
<c:if test="${actionItem.workActionClass.work_action_type_id == '1'}" >
<%@ include f...
Mays asked 30/7, 2015 at 19:36
2
Solved
I'm working on a project using JSF/Facelets. I want to do some CSS changes on my View XHTML, but nothing happen when i deploy my web application in my Tomcat Server. I've tried many tricks but i've...
3
Solved
I want to dynamically pick a facelet to render some item in my data list. The first try would be:
<ui:repeat value="#{panels}" var="panel">
<ui:include src="#{panel.facelet}">
</u...
2
Solved
I need to convert a Date to a String within a page (I dont want to add loads of toStrings to my domain model so adding to the bean is not an option).
<ice:graphicImage value="bean.image" title=...
1
Solved
I'm attempting to use a special PrimeFaces data exporter implementation as being used in this answer:
https://mcmap.net/q/987781/-p-dataexporter-does-not-recognize-p-celleditor
Our use case howev...
Feininger asked 27/5, 2015 at 14:16
1
I'm involved working in a project using Spring Security 4.x and JSF 2.2 with Facelets. I just noticed that spring security in this version have enabled by default the protection against Cross Site ...
Perspicuous asked 18/5, 2015 at 0:32
2
I have a Facelet that might be used in different applications.
I don't to copy it, but reuse it. I need to pass the backing bean that will manage the view as a parameter, as some logic may vary ac...
Saddler asked 30/5, 2013 at 17:55
1
Solved
Where in the contexts can I find the information for something built with a <ui:define>? I want to access a page title that has been defined with <ui:define name="title">Some title</...
3
Solved
How can I customize the validation message that appears when validation fails?
Here is the code I have:
<h:form>
<p><h:inputText
id="userNo"
title="Type a number from 0 to 10:"&...
Vitrify asked 2/5, 2012 at 10:18
2
Solved
I'm new to jsf. I have been trying to do a simple Javascript function with commandbutton. I tried many times but wasn't even able to do an alert message. This is part of my code. Please can anyone ...
Intersexual asked 1/7, 2012 at 3:42
5
Solved
I am using datatable on page and using binding attribute to bind it to my backing bean. This is my code :-
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...
Frizzle asked 9/5, 2010 at 9:45
1
Solved
I'm using <ui:include> to load a data table (I'm using Primefaces). I want use <ui:param> in the listener into the tag <p:ajax>. I tested the code that is down, but not trigger th...
Maser asked 17/3, 2015 at 16:40
1
Solved
I have a Facelet tagfile and need to render different components depending on whether the attribute is specified or not. I tried it as below,
<ui:composition xmlns="http://www.w3.org/1999/xhtml...
Lingo asked 5/3, 2015 at 19:46
© 2022 - 2024 — McMap. All rights reserved.