Hi, we are trying to bind a faces UI component to a conversation.scope Java bean with SEAM 1.0B2 and myFaces 1.1.1/facelets. Whenever the form is postet SEAM complains that "no conversation is active" and throws an exception.
| <h:inputText value="#{conversation.input}" binding="#{conversation.inputComponent}" /> | Question: Am I doing something wrong? Is there a workaround? Thanks Stefan P.S.: After looking at the SEAM and myFaces source I believe that the problem is, that SEAM restores the current conversation in the AFTER_PHASE listener of RESTORE_VIEW, | public void afterPhase(PhaseEvent event) | { | log.trace( "after phase: " + event.getPhaseId() ); | | if ( event.getPhaseId() == RESTORE_VIEW ) | { | restoreAnyConversationContext(event); | } | else if ( event.getPhaseId() == RENDER_RESPONSE ) | .... | and myFaces sets the bindings before calling the AFTER_PHASE listener | .... | recursivelyHandleComponentReferencesAndSetValid(facesContext, viewRoot); | | informPhaseListenersAfter(facesContext, PhaseId.RESTORE_VIEW); | .... | | Just moving the SEAM-code to the other Phase does not work, because the restoreAnyConversationContext(event); method accesses the component tree. When is the conversationID stored in the request-params and when attached to the UIViewRoot? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931865#3931865 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931865 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user