I have a problem with a4j:commandButton and a reredering ...

Posted by ollie314 on Stack Overflow See other posts from Stack Overflow or by ollie314
Published on 2010-04-26T14:02:53Z Indexed on 2010/04/27 7:53 UTC
Read the original article Hit count: 321

Filed under:
|
|

The code below show whiche thing that is failing in my appliaction. It is a quick add information form, fill out the form and submit it add a new entry into a database and synchronize my a databasle.. This is all done with ajax. The first form submission happens correctly but the second one fails to run the desired ActionListener. The second form is posting to the server though but the saveAction isn't invoke. As you will see, I'm a real beginner with this technologies ... If someone see the problem, it will be very helpfull !!

<rich:simpleTogglePanel id="quickaddActivitySimpleToogle"
 switchType="client" 
 opened="false"
 label="#{lang.activityModule_quickAdd_panelTitle}">
<p><a4j:form id="quickAddForm">
 <h:outputLabel for="activityNameInput"
  value="#{lang.activity_name_dp}" />
 <h:inputText id="activityNameInput"
  value="#{activityController.quickActivityAdd.name}">
 </h:inputText>
 <rich:spacer width="20px" />

 <h:inputHidden id="activityInternalNameInput"
  value="#{activityController.quickActivityAdd.internalName}" />
 <rich:spacer width="20px" />
 <a4j:commandButton id="activityQuickAddFormSubmitBtn"
  reRender="activityListTable,quickAddForm"
  actionListener="#{activityController.saveActivity}" 
  value="#{lang.saveBtn_header}" />
</a4j:form></p></rich:simpleTogglePanel>

Thanks in advanced.

ollie314

© Stack Overflow or respective owner

Related posts about java

Related posts about richfaces