I am not sure if what I want is possible, but it worth a try to ask. Let say, I have 2 pages: List.jsf and CreateNew.jsf. List.jsf display data from datasource as <p:dataTable>. CreateNew.jsf insert a new entry into the datasource. What I want is from CreateNew.jsf, when I click create, it create a new entry in a database, then return back to List.jsf, but at this point List.jsf somehow refresh itself so that new entry will be displayed as well. Is it possible to achieve it? Couples thing worth to note: Managed bean for List.jsf is SessionScoped and the managed bean for CreateNew.jsf is RequestScoped
Navigation flow in handle inside faces-config.xml.