facelets Questions

2

I'm starting to learn JavaServer Faces (JSF). I'm using GlassFish 3+. I've just created a new JSF project in NetBeans and run the project. It worked fine, but upon examining the XHTML output, I not...
Brainsick asked 22/5, 2012 at 8:53

1

Solved

I have a component that I want to show/hide after user hits a commandButton. It's like this: <h:commandButton id="showButton" value="#{bean.wasPressed ? 'Hide' : 'Show'}"> <f:ajax...
Kramatorsk asked 8/12, 2012 at 12:58

1

Solved

I am using JSF2.1 and Glassfish 3.1.2. I specify a security constraint to block everything: <security-constraint> <web-resource-collection> <web-resource-name>Secured Content&...
Distorted asked 4/12, 2012 at 4:42

2

I have a form with few input fields & a select one menu. All fields are required="true", firstName, lastName, emailAddress, password, country. Test Case # 1: 1) Enter values in all input fiel...
Amino asked 21/11, 2012 at 1:28

2

Solved

I'm trying to assign an id to a component inside a <ui:repeat> like that: <ui:repeat value="#{bean.columns}" var="column"> <h:panelGroup layout="block" id="column_#{column.id}" s...
Motorway asked 5/2, 2012 at 7:46

3

Solved

I need to write an EL expression for an attribute which goes something like this: #{cc.attrs.appreciatedByCurrentUser ? (cc.attrs.count +'<br/>'+ (cc.attrs.count-1)) : ((cc.attrs.count+1) +'...
Dosia asked 12/9, 2011 at 9:59

1

Solved

I am able to successfully get this to work with the template in my app: <ui:decorate template="/WEB-INF/templates/mytemplate.xhtml"> I am also able to move template to /META-INF/templates/...
Tarttan asked 8/11, 2012 at 15:37

2

As all JSPs are generated / translated to Servlets before their execution, is its true for Facelets too? I am working with JSF 2.0 and Facelets and wanted to see its generated Java Code which migh...
Sycamore asked 1/11, 2012 at 8:43

5

I use windows 7. I set the ClassPath like this: D:\EclipseProjects\DLFWD_NEW\WebContent\WEB-INF\lib\jsf-api.jar;D:\EclipseProjects\DLFWD_NEW\WebContent\WEB-INF\lib\jsf-impl.jar;D:\EclipsePro...
Roughhouse asked 28/11, 2010 at 2:41

1

Solved

I have implemented a login form using JSF and PrimeFaces. I used this example in the PrimeFaces showcase website. I have a Facelets page to show a dataTable. Now I need to integrate the above logi...
Byproduct asked 24/10, 2012 at 10:33

2

Solved

We upgraded our JSF to latest version 2.1. previously we were in JSF2.0.4. Our xhtml pages has Targeting IE Using Conditional Comments tag,which were not rendered as text. But with new JSF2.1.7 th...
Actinology asked 17/4, 2012 at 16:36

1

Solved

<ui:define name="description" rendered="false"> <meta name="description" content="do not render" /> </ui:define> i'm using this code in my xhtml page, when i run the app, meta ...
Bashee asked 29/9, 2012 at 18:54

0

I have 1 file xthml as the following: <?xml version="1.0" encoding="UTF-8"?> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="ht...
Lemmueu asked 27/9, 2012 at 16:52

1

Solved

I would like to use a Facelets template within another template. Currently I have a "base" template that so far has been enough for all pages I've done. It has a top and a content area. The top ha...
Aribold asked 27/9, 2012 at 14:10

1

Solved

I've created some Facelets to make developing our pages easier. Particularly, I've created a series of Facelets for input components. I have 1 Facelet, <xxx:input /> that displays a label aro...
Verla asked 30/8, 2012 at 1:18

1

Solved

I am creating a JSF2 Facelets composite component. I would like the HTML to render differently if a particular facet is defined. Is there any way to check if a <f:facet name="..." /> has been...
Ricardo asked 24/8, 2012 at 19:50

1

Solved

I need to display exception stack trace into my JSF application error.xhtml page. I know how simple is to do it with JSP page. But with JSF 2.0 I have a problem. In my web.xml I have defined a JSF...
Geniculate asked 17/8, 2012 at 14:31

3

Solved

Is there a convenient way to pass parameters to messages from resource bundle to components other than h:outputFormat? For instance, this is legal: <h:outputFormat value="#{myBundle['parametr...
Encampment asked 17/4, 2011 at 23:29

1

Solved

I want to use the em dash in a value attribute for an h:link component. Here is my attempt (currently not working): <h:link value="#{somethingHere} — #{anotherHere}"> <f:param...
Enlistee asked 16/8, 2012 at 17:45

1

Solved

I am calling a method on the click of link. The following code works ajaxfully <ui:repeat value="#{myBean.names}" var="name" varStatus="idx"> <li> <h:commandLink value="#{name....
Hobbema asked 6/8, 2012 at 16:54

2

Solved

I am calling a template and am passing in parameters like below: <ui:include src="WEB-INF/Subviews/ProductEdit.xhtml"> <ui:param name="items" value="#{produtList}"></ui:param> ...
Synecious asked 14/4, 2011 at 6:26

1

Solved

In JSF and Facelets tags, what exactly are these prefixes? h: c: f: ui: For example: h:head c:catch f:event ui:decorate etc.
Buckley asked 24/7, 2012 at 23:13

2

Solved

I'm trying to use Mootools (Request.JSON) together with JSF - mainly because I wrote a similar application in CakePHP some time ago and would like to reuse most of the JS part. Is there any way to...
Malar asked 2/12, 2011 at 14:45

2

I'm finishing on learning the Java language and looking to write very small web applications, since Facelets seems to be the replacement for JSP, and JSF seems overkill for small web apps, can I ju...
Crockett asked 19/7, 2012 at 20:50

1

Solved

I am using JSF to render an HTML page. I design the page like it : <f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" ...
Stonefly asked 18/7, 2012 at 15:44

© 2022 - 2024 — McMap. All rights reserved.