-
1. Re: Portal booking example loses conversation after validati
mauro.lopez Sep 8, 2006 9:51 AM (in response to mauro.lopez)Full title should say Portal booking example loses conversation after validation error
Jira issue is http://jira.jboss.org/jira/browse/JBSEAM-344 -
2. Re: Portal booking example loses conversation after validati
marlau Nov 24, 2006 12:24 AM (in response to mauro.lopez)I'm facing the same issue with these versions but I also tried: jbossAS 4.0.5.GA, jbossportal-2.6.0-DR1 and jbossSeam from cvs (yesterday) and this issue remains, that is, the conversation is lost.
I think that the problem is that the conversationId is not being written to the response when a validation fails. I see that in the class SeamPortletPhaseListener the conversationId is being written only if one of these conditions is true:
- event.getPhaseId() == INVOKE_APPLICATION
- facesContext.getResponseComplete()
When a validation fails, both of them are false every time that the method afterPhase is executed.
Any idea if this is going to be fixed in the next version?
Thanks in advance,
Laura -
3. Re: Portal booking example loses conversation after validati
gavin.king Nov 24, 2006 2:58 PM (in response to mauro.lopez)OK, this is certainly a bug. Is getRenderResponse() returning true, at least?
-
4. Re: Portal booking example loses conversation after validati
marlau Nov 24, 2006 4:06 PM (in response to mauro.lopez)Yes, when a validation fails event.getFacesContext().getRenderResponse() is returning true in the afterPhase method executed after the phase PROCESS_VALIDATIONS.
-
5. Re: Portal booking example loses conversation after validati
gavin.king Nov 24, 2006 8:16 PM (in response to mauro.lopez)Fixed in CVS, please test it for me, thanks.
-
6. Re: Portal booking example loses conversation after validati
marlau Nov 24, 2006 9:06 PM (in response to mauro.lopez)It works. (tested with jboss-4.0.5.GA and jbossportal-2.6.0-DR1)
Thanks. -
7. Re: Portal booking example loses conversation after validati
gavin.king Nov 24, 2006 9:11 PM (in response to mauro.lopez)Excellent, thanks.