[jbossseam-issues] [JBoss JIRA] Created: (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:40:20 EDT 2008


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

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