java - JSF2: navigation flow question -
I'm not sure what I want, but it is worth trying to ask. Suppose I have 2 pages: List.jsf
and CreateNew.jsf
. list.jsf
from the data source & lt; P: dataTable & gt; Display data as
. Enter a new entry in the CreateNew.jsf
data source what I want to do with CreateNew.jsf
, when I click on the generated, it's a new database Returns the entry, then return to List.jsf
, but refresh yourself at List.jsf
at this point so that new entries can also be displayed. Is it possible to achieve this? Value for couple things: Managed bean for List.jsf
is managed for session squad
and CreateNew.jsf
RequestScoped
Handle in the navigation flow within faces-config.xml
.
or @ session-scod
bean list.jsf < / Code> to
and let it call the method after creating a new entry. @ViewScoped
so that there is a new creation, in @ManagedProperty
or @SessionScoped
Add a method as the bean reload list ()
Code> @RejectScoped
Comments
Post a Comment