Top "Jsf-2" questions

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

When should I use h:outputLink instead of h:commandLink?

When should I use an <h:outputLink> instead of an <h:commandLink>? I understand that a …

jsf jsf-2
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 …

jsf jsf-2 binding components
How to set width of a p:column in a p:dataTable in PrimeFaces 3.0?

I'm using PrimeFaces 3.0-M3 and I have a <p:dataTable> with two columns in it. I want the …

css jsf jsf-2 primefaces datatable
Difference between View and Request scope in managed beans

What does the view scope mean? Can anyone explain about it, so that I can understand how it differs from …

jsf jsf-2
How do you pass view parameters when navigating from an action in JSF2?

From an action in my bean, I'm trying to redirect to another page expecting a view parameter. What is the …

jsf jsf-2
Find component by ID in JSF

I want to find some UIComponent from managed bean by the id that I have provided. I have written the …

jsf jsf-2 primefaces uicomponents
When to use valueChangeListener or f:ajax listener?

What's the difference between the following two pieces of code - with regards to listener placement? <h:selectOneMenu ...> &…

ajax jsf jsf-2 listener valuechangelistener
JSF 2.0 File upload

I am looking around a few blogs, to try to find how to upload files using JSF 2.0 But all the …

jsf file-upload jsf-2
Migrating from JSF 1.2 to JSF 2.0

I am working with a rather large app written in JSF 1.2. JSF 1.2 is around 6 years old now. I need to …

java jsf migration jsf-2
Session timeout and ViewExpiredException handling on JSF/PrimeFaces ajax request

I find this article to be useful for non-ajax request How to handle session expiration and ViewExpiredException in JSF 2? but …

ajax jsf-2 primefaces session-timeout viewexpiredexception