Top "Jsf-2" questions

JavaServer Faces (JSF) is a model-view-presenter framework typically used to create web applications.

How to include another XHTML in XHTML using JSF 2.0 Facelets?

What is the most correct way to include another XHTML page in an XHTML page? I have been trying different …

jsf xhtml include jsf-2 facelets
Differences between action and actionListener

What is the difference between action and actionListener, and when should I use action versus actionListener?

jsf jsf-2 action actionlistener
javax.faces.application.ViewExpiredException: View could not be restored

I have written simple application with container-managed security. The problem is when I log in and open another page on …

jsf jsf-2 logout viewexpiredexception
List of <p:ajax> events

I've searched the Internet and I cannot find a list of <p:ajax> events. Can anyone provide a …

ajax jsf jsf-2 primefaces
How to choose the right bean scope?

I noticed that there are different bean scopes like: @RequestScoped @ViewScoped @FlowScoped @SessionScoped @ApplicationScoped What is the purpose of each? …

jsf jsf-2 scope managed-bean
commandButton/commandLink/ajax action/listener method not invoked or input value not set/updated

Sometimes, when using <h:commandLink>, <h:commandButton> or <f:ajax>, the action, actionListener or …

jsf jsf-2 action commandbutton commandlink
Primefaces valueChangeListener or <p:ajax listener not firing for p:selectOneMenu

I am using Primefaces 3.4.2. I have the following in my JSF page <p:selectOneMenu id="emp" value="#{mymb.emp.…

jsf jsf-2 primefaces
How to use if, else condition in jsf to display image

I have a condition where I have an enrollment form in which if userid is 0 it should show the dummy …

jsf-2 jstl
How can I pass selected row to commandLink inside dataTable or ui:repeat?

I'm using Primefaces in a JSF 2 application. I have a <p:dataTable>, and instead of selecting rows, I …

jsf jsf-2 datatable parameter-passing commandlink
How to find out client ID of component for ajax update/render? Cannot find component with expression "foo" referenced from "bar"

The following code is inspired from PrimeFaces DataGrid + DataTable Tutorials and put into a <p:tab> of a &…

ajax jsf jsf-2 primefaces clientid