[jbossseam-issues] [JBoss JIRA] Updated: (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
Tue Sep 30 11:48:20 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francisco Jose Peredo Noguez updated JBSEAM-3480:
-------------------------------------------------
Description:
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)
was:
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.
> 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
> Affects Versions: 2.0.2.SP1
> Environment: Jdk1.6u6, Tomcat 6.0.18
> Reporter: Francisco Jose Peredo Noguez
>
> 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