Linked Questions

186 votes
22 answers
484k views

How to install JSTL? It fails with "The absolute uri cannot be resolved" or "Unable to find taglib" or NoClassDefFoundError or ClassCastException

I don't know what I've done incorrectly, but I can't include JSTL. I have jstl-1.2.jar, but unfortunately I get exception: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/...
2 votes
1 answer
2k views

Why is <ui:fragment rendered> not evaluated on <h:outputStylesheet> and <h:outputScript>

I have a JSF 2 master template as follows: <!DOCTYPE html> <html lang="#{localeManager.language}" xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" ...
81 votes
2 answers
119k views

How does the 'binding' attribute work in JSF? When and how should it be used?

There are lot of materials out there differentiating value attribute and binding attribute in JSF. I'm interested in how both approaches differ from each other. Given: public class User { ...
7 votes
2 answers
10k views

ui:repeat doesn't work with f:selectItem

i am using icefaces select on menu to select a user from list of users and i want to repeat the selectItem for each user here's what i tried: <ice:selectOneMenu id="users"> <ui:repeat ...
0 votes
0 answers
32 views

c:forEach calls its getter for each p:remoteCommand [duplicate]

I do have an JEE application with JSF. As soon as I do use the c:forEach element, then the backend call for detecting the items is called with each p:remoteCommand, talking to the backend, even if no ...
36 votes
2 answers
16k views

Why Facelets is preferred over JSP as the view definition language from JSF 2.0 onwards?

I see that from JSF 2.0 onwards Facelets view definition language is the preferred view definition language and not JSP which has been deprecated as a legacy fallback. I want to understand why ...
1 vote
1 answer
1k views

f:convertNumber failing when currencySymbol is obtained from bean via EL

Hi in my project I need to visualize currency value, as far in my f:convertNumber I use a fixed currencySymbol; everything is ok, but when I try to get the symbol with an expression language like ...
44 votes
8 answers
42k views

How to conditionally render an f:selectItem tag?

How can I specify a conditional rendering for an <f:selectItem> tag. I need to display <f:selectItem> options according to a specific user's status. For example, I wanted something like: ...
86 votes
3 answers
199k views

Conditionally displaying JSF components

First, I am new to Java EE, came from a strong ASP .NET development background. I have gone through the net, and I might miss this but it seems like there is no simple and straight-to-the-point ...
36 votes
3 answers
47k views

How to ajax-refresh dynamic include content by navigation menu? (JSF SPA)

I'm just learning JSF 2 thanks to this site I had learned a lot in such a short time. My question is regarding how to implement a common layout to all my JSF 2 pages and have only the content part of ...
18 votes
4 answers
83k views

c:when and c:if don't work

I can access my variable stored in a backing bean from my JSF2 page, so things like <h:outputText value="#{myBean.myValue}"/> work, and the value (which is an int btw.) prints okay. However, ...
10 votes
1 answer
24k views

Should PARTIAL_STATE_SAVING be set to false?

It seems that today (April 2012), both MyFaces and Mojarra's JSF 2.1 implementations have defects around partial state saving and that PARTIAL_STATE_SAVING should be set to false. Is this true?
25 votes
2 answers
52k views

How to repeat output of text via simple for loop in Facelets without model?

How to repeat output of some content in JSF using only standard tags (ui:, h: etc) ? In other words - how to do equivalent to PHP code below in JSF ? I immediately wanted to take advantage of ui:...
0 votes
1 answer
126 views

Can i use <ui:repeat> only for returning Data from a list?

i am new to stackoverflow and i have a simple question but dont know how to search for it correctly. I want something like the following, with the difference, that the second ui:repeat should not ...
0 votes
2 answers
1k views

JSF Composite component using a4j:repeat

I'm creating a composite component in JSF 2..., inside it I have defined a controller attribute which should point to a custom object which handles the logic behind the component. Basically the ...

15 30 50 per page
1
2 3 4 5
25