[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2748) s:link and s:button with a view parameter are preloading the view
Peter Boevink (JIRA)
jira-events at lists.jboss.org
Mon Mar 17 05:01:51 EDT 2008
s:link and s:button with a view parameter are preloading the view
Project: JBoss Seam
Issue Type: Bug
Components: JSF Controls
Affects Versions: 2.1.0.A1
Environment: WinXP, jboss-4.2.2.GA, JDK1.5.*, jboss-seam-2.0.1.GA
Reporter: Peter Boevink
Create a JSF view (e.g. UserList.xhtml) which makes use of <s:link/> or <s:button/> including the 'view' parameter e.g.:
UserList.seam should be rendered making use of a long-running conversation, e.g.:
The 'UserEdit.page.xml' references a bean by making use of:
Now visit the UserList.seam page which holds the s:link reference to UserEdit.xhtml.....
Don't click this s:link but open the debug.seam page to see what conversations exist with their objects.
You''ll see a long running conversation (created by UserList.page.xml).
Surprisingly, this conversation contains a 'userHome' object that should not be created before loading UserEdit.seam!
Expected behaviour is than a long running conversation without objects.
Making use of the <s:link/> tag with a typo in the 'view' parameter:
Creates a long-running conversation without objects.
So it looks like the page referred by the view parameter is somehow rendered and the beans referred by that page are pre-loaded in the currently active conversation scope.
This causes undesired behaviour when making use of nested conversation e.g.:
<s:link view="UserEdit.xhtml" propagation="nest"/>
<s:conversationPropagation type="nested" />
The beans referred by the UserEdit.seam page are now loaded in the parent conversation instead of the nested one.
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues