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 the page refresh not the whole page whenever I…
I know we can't repeat the ID of any component we have in the same view tree.
I have a page which includes another pages by certain condition Like this...
I am trying to toggle a page that shows a . Before I just included the template and it would just show the table the whole time.
Now I want to be able to toggle it on/off on the…
I have seen this question ask around a lots, however, none was properly answered so I decided to ask again. So if I have this: if I am in A.xhtml and I
so in…
I'm using to load a data table (I'm using Primefaces). I want use in the listener into the tag . I tested the code that is down, but not trigger the event onRowEdit or onRowCancel.
This is my page:
...
I have a template that's part of a form to edit some element. The action to be performed is different depending on the page in which it is included. So I pass the action method as a parameter:
…
I tried to include multiple source page path using ui:include tag in different tabs. The problem is when i gave the source page path as static one means that page will be shown but if give the source page path from backing bean mean it won't include…
I have created a table column which is defined in its own include file. This column is used by in a few other Facelets pages to be used in some datatables. The include column uses a variable called "linje" (which is a java class), which…
I need to customize the ui:include renderer in a way that when it generates the HTML output also adds a comment stating the starting and the ending of the included file.
Example, supposing a blank file.xhtml:
Input
I'm practicing JSF+JPA and got stuck with the following exception:
19/03/2013 00:04:18 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet [Faces Servlet] in context with path [/K19-Futebol] threw exception…
I am new to JSF and I am struggling with dynamicaly rendering included pages. My code looks like this:
MenuBean
@ViewScoped
public class MenuBean implements Serializable {
private MenuItem[] menuItems = new MenuItem[] {
new…