[
https://jira.jboss.org/browse/JBSEAM-4667?page=com.atlassian.jira.plugin....
]
varun shaji commented on JBSEAM-4667:
-------------------------------------
i found out that that FacesPage which bookkeeps the details about conversation associated
with current page is stored in PageContext. And this return the ConversationID which is
turning null in JSF 2. It seems the Pagecontext implementation is incompatible with JSF2 .
In JSF 2 the Viewroot.getAttributes have some changes in the map that it returns. And this
in turn is used by the PageContext implementation to save in page context. I think an
alternate implementation is required..Any Guess..i am not well versed with the
intricansies..For the time being i just saved the conversaiton Id in session and its
working fine..Its a hack..
Using JSF 2 And Seam - conversation Id
--------------------------------------
Key: JBSEAM-4667
URL:
https://jira.jboss.org/browse/JBSEAM-4667
Project: Seam
Issue Type: Bug
Affects Versions: 2.2.1.CR1
Environment: JBoss-6.0 M2 , Seam 2.2.0 & Seam 2.2.1 CR1, JSF 2(Mojarro -
2.0.2)
Reporter: varun shaji
During Postback from a JSF page , the conversation cannot be retored.
The debug logs that i obtained for JSF 1.2 and JSF 2.0 are as shown for the same postback
in a pageflow are as shown
JSF 1.2
********************************************************************************************************************
06-15@23:18:50 (JbpmContextInfo.java:145) DEBUG - creating jbpm context with service
factories '[]'
06-15@23:18:50 (JbpmContext.java:124) DEBUG - creating org.jbpm.JbpmContext@7b3555
06-15@23:18:50 (Pageflow.java:470) DEBUG - new pageflow instance for definition: hello
06-15@23:18:50 (GraphElement.java:170) DEBUG - event 'process-start' on
'ProcessDefinition(hello)' for 'Token(/)'
06-15@23:18:50 (JbpmContext.java:133) DEBUG - closing jbpmContext
org.jbpm.JbpmContext@7b3555
*******************************************************************************************************
JSF 2.0
**********************************************************************************************
06-15@22:38:27 (Pageflow.java:470) DEBUG - new pageflow instance for definition: hello
**********************************************************************************************
I debuged and found the FacesPage from which the conversation Id is returning..Is
returning null in JSF2 ..ConversationId is returning null in FacesPage returned by Seam
when Using JSF2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira