
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
linux
tomcat5.5.19
java 1.5.02
linux
tomcat5.5.19
java 1.5.02
|
|
|
I currently have a page with a list of items on it. For each line, there is a link to select one of the items. When an item is selected, the action method bound to that link fetches the item from a database and retruns an outcome that has a navigation rule to navigate to a item detail page. Based on some values in that item, we would like to display a message to the user. I initally added those methods in the prerender method of the view controller of the item detail page. It looks though that prerender in the case described above is not being called on the view controller of the detail page because at the time of beforeRenderResponse phase the ViewController for the new page has not been added to the request scope map.
The ViewController doesn't actually get added to the request map until the first reference to it is found when parsing the jsp page components which occurs sometime during the RenderResponse jsf phase.
The prerender plug point is essentially useless. It will get called anytime I take an action that stays on the current page, but when navigating from one page to another, it will never get called.
|
|
Description
|
I currently have a page with a list of items on it. For each line, there is a link to select one of the items. When an item is selected, the action method bound to that link fetches the item from a database and retruns an outcome that has a navigation rule to navigate to a item detail page. Based on some values in that item, we would like to display a message to the user. I initally added those methods in the prerender method of the view controller of the item detail page. It looks though that prerender in the case described above is not being called on the view controller of the detail page because at the time of beforeRenderResponse phase the ViewController for the new page has not been added to the request scope map.
The ViewController doesn't actually get added to the request map until the first reference to it is found when parsing the jsp page components which occurs sometime during the RenderResponse jsf phase.
The prerender plug point is essentially useless. It will get called anytime I take an action that stays on the current page, but when navigating from one page to another, it will never get called.
|
Show » |
|
NOTE -- in the nightly build code, the view controller stuff has been factored out of shale-core-xxxxx.jar, so you'll need to add shale-view-xxxxx.jar to your webapp as well as replacing the othe Shale jars.
[1] http://shale.apache.org/index.html#download