[jboss-user] [JBoss Seam] - h:commandButton requires s:conversationId to work properly

svadu do-not-reply at jboss.com
Mon Jan 22 18:43:14 EST 2007


Hi all,

>From what I understand conversation id is propagated across post requests. I have a case where I visit a page via s:link (all participating beans are conversation scoped and the action in the link has @Begin(join=true) ):

<s:link id="editLnk" value="#{message['edit']}" action="#{regionAction.submitEditGisArticle}" 
  | 	rendered="#{user.admin}" styleClass="texttoolbar" />

On the resulting page I have a h:form with a h:commandButton however when I click the button apparently a new conversation started for some reason (which causes RequiredException as a result because some beans in the previous conversation are not present in the new conversation). The only way to avoid starting the new conversation is to put s:conversationId inside the h:commandButton and this works:

<h:commandButton id="submitBtn" value="#{message['save']}"
  | 	action="#{articlesHandler.submitEditedGeneralArticle}" >
  | 	<s:conversationId/>
  | </h:commandButton>

Am I missing something? Why the conversation isn't propagated with the POST request this time?

Thanks in advance,
Siarhei Dudzin

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005046#4005046

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005046



More information about the jboss-user mailing list