Problem with long runnig conversation
rburla Aug 27, 2008 12:15 AMHi all,
Im having some problem when I try to submit an ajax form during a long running conversation.
The problem is that the first time i click on the submit button the form apparently is submitted, but the method was not invoked. But when I click the submit button for the second time the form is submitted and the method invoked.
Anybody can help me??
here is the code:
<a4j:form id="permissionOUForm"> <rich:simpleTogglePanel id="permissionOU" switchType="client" opened="false" label="#{messages['permission.ou.title']}" styleClass="attribute-relationship" headerClass="label" bodyClass="field"> <s:div styleClass="field-align-left"> <h:outputText styleClass="bold" value="#{messages['permission.label']}" /><br /> <h:selectOneMenu id="selectPermissionOU" value="#{ouController.permission}"> <s:selectItems hideNoSelectionLabel="false" noSelectionLabel="#{messages['permission.selectOne']}" var="permission" value="#{permissionController.listPermissionsByPermissionEntityTypeWithTypeChildrenAndStatus('com.milestone.youknow.model.OU', 'ACTIVE')}" label="#{permission.name}"> </s:selectItems> <a4j:support event="onchange" reRender="permissionOUUser" eventsQueue="populateLists" ajaxSingle="true"/> <s:convertEntity/> </h:selectOneMenu> </s:div> <s:decorate id="newPermissionOUUserList"> <rich:listShuttle id="permissionOUUser" sourceValue="#{ouController.listOUsNotRelatedUser}" targetValue="#{ouController.listOUsRelatedUser}" var="ou" sourceListWidth="240px" targetListWidth="240px" sourceCaptionLabel="#{messages['permission.ou.ous.available']}" targetCaptionLabel="#{messages['permission.ou.ous.selected']}" copyAllControlLabel="#{messages['button.moveAll']}" copyControlLabel="#{messages['button.move']}" removeControlLabel="#{messages['button.remove']}" removeAllControlLabel="#{messages['button.removeAll']}" topControlLabel="#{messages['button.moveTop']}" upControlLabel="#{messages['button.moveUp']}" downControlLabel="#{messages['button.moveDown']}" bottomControlLabel="#{messages['button.moveBottom']}" orderControlsVisible="false" fastOrderControlsVisible="false"> <rich:column> <h:outputLabel value="#{ou.name}" /> </rich:column> <s:convertEntity/> </rich:listShuttle> </s:decorate> <a4j:commandButton id="editPermissionOUButton" value="#{messages['button.save']}" action="#{ouController.saveOUPermissionsUser}" styleClass="button" /> <a4j:commandButton id="cancelButton" value="#{messages['button.cancel']}" reRender="permissionOUUser" styleClass="button" oncomplete="collapseSimpleTogglePanel('permissionOUForm:permissionOU')"/> </rich:simpleTogglePanel> </a4j:form>
And the link that call this page is:
<s:button id="editUserButton" value="#{messages['button.edit']}" action="#{userController.redirect('update')}" styleClass="button" rendered="#{identity.hasPermission(constantsUtil.getEventKey('UPDATE_USER_EVENT_KEY'))}"> <f:param value="#{user.id}" name="userId"/> <s:conversationPropagation type="join"/> </s:button>
Thanks