[
http://jira.jboss.com/jira/browse/JBSEAM-1574?page=comments#action_12372551 ]
Michael Youngstrom commented on JBSEAM-1574:
--------------------------------------------
Another quick point I'd like to make regarding this being expected functionality that
is with regard to the dichotomy between <render> and <redirect> I would think
from a user standpoint those 2 tags should function exactly the same. So if it were
decided that the action for /docDisplay.xhtml and an action for /docEdit.xhtml should both
be called then we should do the same for <render> which would mean that if we were
using a commandLink that executed an action and returned "editDoc":
<h:commandLink action="#{someAction}"/>
And the redirect to docEdit.xhtml were changed to a <render/> then we would be
executing the page action for /docDisplay.xhtml and the page action for /docEdit.xhtml (if
there were one). So, to sum up I would say that:
1. Only the page action for a page being rendered should be called. (only one page
action per navigation)
2. <rendered/> and <redirect/> should function the same with regard to page
actions being called.
That is the way page actions currently work.
Comments?
Mike
pages.xml actions are not called when using "render" with
s:link and s:button
-----------------------------------------------------------------------------
Key: JBSEAM-1574
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1574
Project: JBoss Seam
Issue Type: Bug
Components: JSF
Affects Versions: 2.0.0.BETA1
Reporter: Michael Youngstrom
Assigned To: Michael Youngstrom
Priority: Blocker
Fix For: 2.0.0.CR1
<page view-id="/list.xhtml">
<navigation>
<rule if-outcome="detail">
<render view-id="/detail.xhtml"/>
</rule>
</navigation>
</page>
<page view-id="/detail.xhtml"
action="#{bean.loadDetail}"/>
Does not appear to call #{bean.loadDetail} when the list navigation rule is executed.
Mike
--
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