Issue Details (XML | Word | Printable)

Key: SHALE-307
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Craig McClanahan
Reporter: Jonathan Baker
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Shale

ViewController for navigated-to page is not added to the request map until bean is referenced in RenderResponse phase.

Created: 12/Oct/06 05:31 PM   Updated: 23/Jan/07 04:40 PM
Return to search
Component/s: View
Affects Version/s: 1.0.3
Fix Version/s: 1.0.4

Environment:
linux
tomcat5.5.19
java 1.5.02


 Description  « Hide
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.


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig McClanahan made changes - 18/Oct/06 06:07 PM
Field Original Value New Value
Assignee Craig McClanahan [ craigmcc ]
Craig McClanahan made changes - 18/Oct/06 06:15 PM
Component/s View [ 21300 ]
Component/s Core [ 21250 ]
Craig McClanahan made changes - 20/Oct/06 03:08 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 1.0.4-SNAPSHOT [ 21740 ]
Rahul Akolkar made changes - 23/Jan/07 04:40 PM
Fix Version/s 1.0.4 [ 21790 ]
Fix Version/s 1.0.4-SNAPSHOT [ 21740 ]
Jeff Turner made changes - 09/Aug/07 07:17 AM
Workflow Struts [ 38820 ] Struts - editable closed status [ 42424 ]
Antonio Petrelli made changes - 08/Jan/09 08:57 AM
Workflow Struts - editable closed status [ 42424 ] Struts - editable closed status (temporary) [ 46300 ]
Antonio Petrelli made changes - 08/Jan/09 09:08 AM
Workflow Struts - editable closed status (temporary) [ 46300 ] Struts - editable closed status [ 52983 ]