[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3480) s:link with propagation="none" linked to action with @Begin fails (intermittently) with conversation-required="true"

Francisco Jose Peredo Noguez (JIRA) jira-events at lists.jboss.org
Wed Oct 22 09:52:20 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBSEAM-3480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12434901#action_12434901 ] 

Francisco Jose Peredo Noguez commented on JBSEAM-3480:
------------------------------------------------------

If "conversation-requiered=true" means that  a previously started conversation must be propagated when that view is restored, why does it let me see the page the first time? if it is the first time I am visiting the page, by clicking a link with propagation none, there is no previously started conversation, why then do I see the page? why does it start failing on the second click? and finally, why the code in my previous post does work without failing intermittently? would you say that code acts like a "conversation-requiered=true" condition? if it does not do that then... what does it do?

> s:link with propagation="none" linked to action with @Begin fails (intermittently) with  conversation-required="true"
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-3480
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3480
>             Project: Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.2.SP1
>         Environment: Jdk1.6u6, Tomcat 6.0.18
>            Reporter: Francisco Jose Peredo Noguez
>            Assignee: Shane Bryzak
>             Fix For: 2.1.0.GA
>
>         Attachments: SeamTestCase.zip
>
>
> You can not call a s:link with propagation="none" linked to an action with @Begin from a page with conversation-required="true" to a page with conversation-required="true" because it will redirect you to the no-conversation-view-id. (And I think it shouldn't do that, it should allow you to reach the page you originally meant to reach, because the action has a  @Begin and it should consider that)
> Menu.java code:
> @Name("menu")
> public class Menu {
> 	@Begin
> 	public String goToCategoryList(){
> 		return "/CategoryList.xhtml";
> 	}
> }
> layout/menu.xhtml code:
> <s:link value="Category List By Action" propagation="none" action="#{menu.goToCategoryList}"/>
> And in CategoryList.page.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <page xmlns="http://jboss.com/products/seam/pages"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd"
>       no-conversation-view-id="/Blank.xhtml" conversation-required="true">
>       
>    <param name="firstResult" value="#{categoryList.firstResult}"/>
>    <param name="order" value="#{categoryList.order}"/>
>    <param name="from"/>
>    <param name="name" value="#{categoryList.category.name}"/>
> </page>
> The funny thing is that this makes the menu option work intermittently:
> first time works (from a page without conversation-required to a page with conversation-required)
> second time does not work (from a page with conversation-required to a page with conversation-required) and it gets redirected to Blank.seam
> third time works (from a page without conversation-required to a page with conversation-required)
> And so on and so forth...
> The big question here is, if the @Begin is not really working, why it does work the first time? because if I comment the @Begin::
> Menu.java code:
> @Name("menu")
> public class Menu {
> 	//@Begin <----THIS IS NOW COMMENTED
> 	public String goToCategoryList(){
> 		return "/CategoryList.xhtml";
> 	}
> }
> Then It fails always. I think the propagation="none" linked to action with @Begin should work always or fail always, (just to be clear I think this should be fixed so that it works always)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list