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

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

    Ilya Dyoshin Novice


      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:modalPanel id="modalPanel">
        <a4j:outputPanel id="modalPanelContent">
         <a4j:commandButton value="save" action="#{myBean.save()}" reRender="mainOutput">

      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