Monday, 9 September 2013

jsf faces-redirect to recreate bean

jsf faces-redirect to recreate bean

I am asking if a view-scoped bean is recreated (and reinitialized) when i
have a commandbutton with action="?faces-redirect=true" on it?
The thing is, that I need the bean to fully reload (clear all lists etc.)
is this the right way to achieve it?
in detail I have a form where the user can make a text input and submit it
to itself (the action method saves the input into the DB and the JSF-site
loads the DB-Contents on rerenderview).
renderscope is not a solution because of other side-effects.

No comments:

Post a Comment