A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
refresh data in session jsf2, primeface
Joined: Aug 08, 2012
Aug 13, 2012 05:03:49
I have two xhtml pages : the first allow to store new order, the second allow to list all of orders stored in the database.
For specific purposes, I have sessionManeged in the second page and the problem is when I save a new order and I go in the second page it doesn't get refresh because data are stored in sessions.
Can you suggest me a method to refresh data (re_run query to database) when a new order is stored?
Joined: Jun 25, 2001
Aug 14, 2012 04:53:53
navigation mechanism is designed to do that. Inject the backing bean for the second page into the backing bean for the first page as a Managed Property.
When the action method for the first page is invoked in the backing bean for the first page, have that backing bean invoke a setup method in the second bean. That setup method can then fetch the data.
When the action method returns to the JSF Controller with the navigation rule, the second page will be displayed and its backing bean will contain the desired values.
Customer surveys are for companies who didn't pay proper attention to begin with.
subject: refresh data in session jsf2, primeface
JSP Session Problem
How to cancell long-runnig actionListener /stored proc. call/
New row adds to output on page refresh
F5 or page refresh calls onSubmit of spring controller - database again updated
by click on submit buutton the page refresh a get new data from database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014