[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1162) propagation none with s:link

Gavin King (JIRA) jira-events at lists.jboss.org
Mon May 21 14:28:52 EDT 2007


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

Gavin King closed JBSEAM-1162.
------------------------------

    Resolution: Rejected

Use view="/viewId.xhtml", not action="/viewId.xhtml", and please do not reopen closed issues in future. Take it to the user forum, please. Thanks.

> propagation none with s:link
> ----------------------------
>
>                 Key: JBSEAM-1162
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1162
>             Project: JBoss Seam
>          Issue Type: Bug
>    Affects Versions: 1.2.1.GA
>         Environment: Seam 1.2.1.GA, MyFaces 1.1.6 nighly from march, Facelets 1.1.11
>            Reporter: Daniel Wiell
>         Assigned To: Gavin King
>
> <s:link action="/test.xhtml" propagate="none"/> 
> behaves diffrently from
> <h:commandLink action="/test.xhtml">
>     <f:param name="conversationPropagation" value="none"/>
> </h:commandLink>
> The s:link propagates the conversation to the next view, while the h:commandLink doesn't.
> Here are some code to replicate this behavior:
> ----------------------- test1.xhtml
> <?xml version='1.0' encoding='UTF-8'?>
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:s="http://jboss.com/products/seam/taglib">
> <head></head>
> <body>
> <h:form>
>     <h:commandLink value="Refresh" action="/test1.xhtml"/>
>     <br/><br/>
>     <!-- Doesn't work expected - Propagates the conversation. -->
>     <s:link value="To test 2 (s:link)" action="/test2.xhtml" propagation="none"/>
>     <br/>
>     <!-- Works as expected - does not propagate the conversation -->
>     <h:commandLink value="To test 2 (h:commandLink no propagate)" action="/test2.xhtml">
>         <f:param name="conversationPropagation" value="none"/>
>     </h:commandLink>
>     <br/>
>     <!-- Works as expected - propagates the conversation -->
>     <h:commandLink value="To test 2 (h:commandLink propagates)" action="/test2.xhtml"/>
> </h:form>
> </body>
> </html>
> ----------------------- test2.xhtml
> <?xml version='1.0' encoding='UTF-8'?>
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:s="http://jboss.com/products/seam/taglib">
> <head></head>
> <body>
> <h:form>
>     <s:link value="To test 1" action="toTest1"/>
> </h:form>
> </body>
> </html>
> ----------------------- The relevant parts from pages.xml
>     <page view-id="/test1.xhtml" >
>         <begin-conversation join="true"/>
>     </page>
>     <page view-id="/test2.xhtml">
>         <navigation>
>             <rule if-outcome="toTest1">
>                 <begin-conversation/>
>                 <redirect view-id="/test1.xhtml"/>
>             </rule>
>         </navigation>
>     </page>

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