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...
Kostman asked 29/10, 2010 at 6:30

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...
Charleen asked 6/4, 2011 at 6:21

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...
Eckert asked 13/7, 2012 at 11:38

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   for this and this works fine. However, when I put those   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...

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...
Marquis asked 25/1, 2010 at 22:37

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...
Vanover asked 19/4, 2011 at 8:9

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...
Leggat asked 5/9, 2012 at 12:50

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...
Terra asked 29/7, 2010 at 12:36

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=...
Parallax asked 4/3, 2010 at 11:25

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</...
Baffle asked 2/4, 2015 at 10:22

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...

© 2022 - 2024 — McMap. All rights reserved.