[
http://jira.jboss.com/jira/browse/JBSEAM-635?page=comments#action_12350467 ]
Gavin King commented on JBSEAM-635:
-----------------------------------
Actually what I just wrote is nonsense. Its supported, but you have to use
<start-page>, not <start-state> (since navigation handler has already run by
the time we get to the page action).
I have no idea what
"The pageflow is not starting properly. There are no errors messages in the logs but
the application defined error page is displayed."
means, but I suggest you use your debugger to trace around and see whats going on, since I
am in bed with a fever, and can't spend anymore time on this. I'm sure there is no
bug.
Pageflow started in render response phase using
<start-page>doesn't work
------------------------------------------------------------------------
Key: JBSEAM-635
URL:
http://jira.jboss.com/jira/browse/JBSEAM-635
Project: JBoss Seam
Issue Type: Bug
Components: BPM
Affects Versions: 1.1.0.GA
Environment: Jboss 4.0.5GA
Reporter: Richard Leherpeur
Assigned To: Gavin King
With the following pageflow definition:
<?xml version="1.0"?>
<pageflow-definition name="test">
<start-page name="start">
<transition to="isUserLoggedIn"/>
</start-page>
<decision name="isUserLoggedIn"
expression="#{loginAction.isUserLoggedIn}">
<transition name="true" to="page1" />
<transition name="false" to="page2" />
</decision>
...
</pageflow-definition>
When the flow is started in a SFSB by calling a method definied like:
@Begin
public void init() {
...
Pageflow.instance().begin(this.getPageflow());
}
The pageflow is not starting properly. There are no errors messages in the logs but the
application defined error page is displayed.
Now, if the previous code is followed by:
Pageflow.instance().navigate(facesContext, null);
then the flow starts fine and reach the first page. But then it seems that the flow lost
the conversation and it is not possible to access the SFSB that started the conversation
anymore.
I believe a comment about this usecase is made in org.jboss.seam.core.Pageflow in the
method:
public void begin(String pageflowDefinitionName)
{
if ( log.isDebugEnabled() )
{
log.debug("beginning pageflow: " + pageflowDefinitionName);
}
processInstance = PageflowHelper.newPageflowInstance(
getPageflowProcessDefinition(pageflowDefinitionName) );
//if ( Lifecycle.getPhaseId().equals(PhaseId.RENDER_RESPONSE) )
//{
//if a pageflow starts during the render response phase
//(as a result of a @Create method), we know the navigation
//handler will not get called, so we should force the
//pageflow out of the start state immediately
//TODO: this is not actually completely true, what about <s:actionLink/>
//pi.signal();
//}
setDirty();
Events.instance().raiseEvent("org.jboss.seam.beginPageflow." +
pageflowDefinitionName);
storePageflowToViewRootIfNecessary();
}
--
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