Top "View-scope" questions

The View Scope means that you can keep the object alive as long as you are staying on the view (page).

@ManagedProperty on #{param} does not work in @ViewScoped

My bean has this: @ManagedBean @ViewScoped public class BookBean implements Serializable { @ManagedProperty(value = "#{param.id}") // does not work with @ViewScoped …

jsf jsf-2 view-scope http-request-parameters
@PostConstruct method is called even if the ManagedBean has already been instantiated (e.g. on AJAX-calls)

I have a @ViewScope ManagedBean and a @PostConstruct initialisation method. This method is called when a new instance is created, …

ajax jsf jsf-2 view-scope postconstruct
Property action listener is not called when attached to Primefaces' command link

I am using Primefaces and I have a problem that the setPropertyActionListener isn't fired and thus isn't setting a property …

jsf-2 primefaces managed-bean view-scope
Inject CDI bean into JSF @ViewScoped bean

I have a problem with JSF, CDI project. I did a lot of research and I found that in CDI …

jsf jsf-2 cdi view-scope
JSF @ViewScope, PrimeFaces <p:dialog and <ui:include

I have: button on main page and dialog. A would like to have ViewScope life cycle for managed bean (NewDialog.…

java jsf jsf-2 primefaces view-scope
@ViewScoped Managed bean loads many times during postback

I have a calendar, editor, fileUpload and a dataTable primefaces controls on a jsf facelet. Code is as follows, <?…

jsf jsf-2 primefaces postback view-scope
Memory leak with ViewScoped bean?

In our JavaEE6 project (EJB3, JSF2) on JBoss 7.1.1, it seems we have a memory leak with SeamFaces @ViewScoped. We made …

jsf-2 memory-leaks cdi seam3 view-scope