No active conversation context (natural conversations)
------------------------------------------------------
Key: JBSEAM-3369
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3369
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.3.CR1
Environment: Linux Ubuntu 7.10, Intel Pentium 4, 3GHz, 1 GB RAM, Tomcat 6.0.16
Reporter: Arron Ferguson
Priority: Blocker
Natural conversations and rules in your pages.xml file are suppose to enforce navigation
rules whereby if the user types a URL from a previous state of the conversation (or uses a
bookmark), the rules set in the pages.xml should work and redirect the user without
exceptions being generated.
Setup Instructions:
Please see
https://jira.jboss.org/jira/browse/JBSEAM-3368 and use the exact same files. If
you want to see the conversation actually existing then add the following to the
template.xhtml file:
<ui:insert name="conversationlist">
<h:dataTable value="#{conversationList}" var="entry"
rendered="#{not empty conversationList}">
<h:column>
<f:facet name="header">Workspace</f:facet>
<h:commandLink action="#{entry.select}"
value="#{entry.description}"/>
<h:outputText value="[current]"
rendered="#{entry.current}"/>
</h:column>
<h:column>
<f:facet name="header">Activity</f:facet>
<h:outputText value="#{entry.startDatetime}">
<f:convertDateTime type="time" pattern="hh:mm a"/>
</h:outputText>
<h:outputText value=" - "/>
<h:outputText value="#{entry.lastDatetime}">
<f:convertDateTime type="time" pattern="hh:mm a"/>
</h:outputText>
</h:column>
<h:column>
<f:facet name="header">Action</f:facet>
<h:commandButton action="#{entry.select}"
value="#{msg.Switch}"/>
<h:commandButton action="#{entry.destroy}"
value="#{msg.Destroy}"/>
</h:column>
</h:dataTable>
</ui:insert>
Which will indeed display a conversation in memory.
Steps to reproduce bug:
1.) Start web app inside of Tomcat 6
2.) using your browser, click on the buttons and take yourself all the way up to
register4.xhtml but *do not* click on the Seam link labeled "back to home".
Instead type in your browser's URL text field register1.xhtml. What happens is that
the register1.xhtml page shows and an exception is generated:
java.lang.IllegalStateException: No active conversation context
The correct response should be for the Seam app to redirect the user back to the
register3.xhtml page (based on the pages.xml rules, again see
https://jira.jboss.org/jira/browse/JBSEAM-3368 for more details).
--
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