NLS missing message: CANNOT_FIND_FACELET_TAGLIB
This is an Eclipse quirk. Try one of the following things: Close/reopen project. Rightclick project > Validate. Project > Clean… and clean selected project. Restart Eclipse.
This is an Eclipse quirk. Try one of the following things: Close/reopen project. Rightclick project > Validate. Project > Clean… and clean selected project. Restart Eclipse.
To handle the exception whenever the user invokes a synchronous POST request on a page while the HTTP session has been expired and the JSF view state saving method is set to server, add an <error-page> to the web.xml which catches the JSF ViewExpiredException and shows the home page. <error-page> <exception-type>javax.faces.application.ViewExpiredException</exception-type> <location>/home.xhtml</location> </error-page> To handle … Read more
Facelets is a XML based view technology. XML has only five predefined entities. The is not among them. It works only when used in plain HTML or in legacy JSP (note: it doesn’t work in JSPX as that’s also XML based!). To fix this, you either need to declare the entity yourself in the … Read more
Your concrete problem is caused by 2 facts: When JSF needs to decode a form submit action or a submitted input value, then it also checks if the component is rendered or not (as safeguard against hacked/tampered requests). Request scoped beans are recreated on every HTTP request (an ajax request counts also as one request!). … Read more
I want to put my JSF 2.0 xhtml files under WEB-INF\jsf. How do I access them then? You cannot. Files in /WEB-INF folder are not directly accessible. There are two options to workaround the problem of JSF source files being public accessible. Map the FacesServlet on *.xhtml instead of *.jsf. Or, restrict direct access on … Read more
It isn’t possible to define columns based on row data. Imagine that row 1 has 2 columns, row 2 has 6 columns, row 3 has 1 column, etc how would you ever produce a technically valid table in HTML? Each row must have the same amount of columns. You’ve 2 options, depending on whether can … Read more
JSF/Facelets uses by default UTF-8 to decode HTTP request parameters. GlassFish itself uses by default ISO-8859-1 do decode HTTP request parameters. HTTP request parameters can be parsed and decoded only once and this happens whenever a request parameter is requested by the code for the first time like so request.getParameter(“name”). So, if a request parameter … Read more
This is somewhat subjective, but ala, it boils down to the following: Navigation rules in XML are a maintenance hell. Using navigation rules suggests that the web application in question suffers from the “one URL behind” problem which causes bad user experience (pages are not bookmarkable). Using navigation rules suggests that the web application in … Read more
According to the FileUpload and FileUploadRenderer source code, the validator is only invoked when mode=”simple” is been used (note: this in turn requires ajax=”false” on command). The advanced mode will namely not set the uploaded file as component’s submitted value, causing it to remain null until the listener method is invoked. As long as the … Read more