[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1358) conversation stack not popping properly when used with pages.xml

Gavin King (JIRA) jira-events at lists.jboss.org
Tue May 29 19:11:12 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-1358?page=all ]

Gavin King closed JBSEAM-1358.
------------------------------

    Resolution: Rejected

Correct, page actions ALWAYS execute on every request to the page. (An s:link with no explicit view attribute is a request back to the page.)

So to change this behavior, specify an explicit view on s:link.

> conversation stack not popping properly when used with pages.xml
> ----------------------------------------------------------------
>
>                 Key: JBSEAM-1358
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1358
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.3.0.ALPHA
>            Reporter: Hung Tang
>
> Assume there are two pages p1 and p2.  Entering p1 will start a conversation c1.  p1 contains a s:link to p2, which when clicked will start a new nested conversation c2.  In p2, there's a s:link that goes back to p1 by invoking action #{conversation.redirectToParent}.  
> The strange part.
> If the propagation=nested rule is specified as part of the s:link, then the redirectToParent is working okay and the conversationStack is consistent.
> If the propagation=nested rule is specified as part of p2.page.xml as <begin-conversation nested="true"/>, then the redirectToParent does not redirect to parent, and the conversationStack reports an additional duplicate entry for p2. 
> -- Code snippets
> ## page1.page.xml
> <page>
>   <description>Page 1</description>
>   <begin-conversation join="true"/>
> </page>
> ## page1.xhtml
> <html>
> <h:form>
> <ui:repeat var="entry" value="#{conversationStack}">
>   <h:outputText value="|"/>
>   <h:commandLink value="#{entry.description}" action="#{entry.select}"/>
> </ui:repeat>
> </h:form>
> <s:link view="/page2.xhtml" value="Page 2"/>
> </html>
> ## page2.page.xml
> <page>
>   <description>Page 2</description>
>   <begin-conversation nested="true"/>
> </page>
> ## page2.xhtml
> <html>
> <h:form>
> <ui:repeat var="entry" value="#{conversationStack}">
>   <h:outputText value="|"/>
>   <h:commandLink value="#{entry.description}" action="#{entry.select}"/>
> </ui:repeat>
> </h:form>
> <s:link value="Back to parent" action="#{conversation.redirectToParent}"/>
> </html>

-- 
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 mailing list