2 Replies Latest reply on Mar 18, 2010 8:21 PM by danielrowe

    a4j:commandButton (commandLink) doesn't call methods after ajax reRender

    idyoshin

      hello,


      I've reached a strange problem.


      I have an ajaxified page for working with a list of objects (not entities). I have rich:modalPanel for editing and adding new objects, and rich:dataTable for outputing the current set of the objects.


      for this purpose I've created the following template:


      <a4j:outputPanel  id="mainOuptut">
         <a4j:form ajaxSubmit="true">
         <a4j:commandButton action="#{myBean.createInstance()}" value="Create" reRender="modalPanelContent"/>
      
         <rich:dataTable ... >
         </rich:dataTable>
         </a4j:form>
      </a4j:outputPanel>
      
      
      <rich:modalPanel id="modalPanel">
        <a4j:outputPanel id="modalPanelContent">
      
          .... 
      
         <a4j:commandButton value="save" action="#{myBean.save()}" reRender="mainOutput">
          
         </a4j:commandButton>
        </a4j:outputPanel>
      </rich:modalPanel>



      After first create - show ajax cycle, my createButton simply stops creating new instances (method not called)... 


      Any suggestions?


      Or I have to deal with richfaces team?


      Best regards,
      Ilya Dyoshin