4 Replies Latest reply on Jan 4, 2011 5:22 AM by Ilya Shaikovsky

    a4j:commandLink problem with richfaces 4

    S K Newbie



      The below code was correctly working in richfaces-3.3.3 but its not working in richfaces 4,


              <a4j:commandLink value="Delete" action="#{mr.getCheckedInstances()}"
                  oncomplete="#{rich:component( 'delete' )}.show()"
                  reRender="mp_deleteBulk_#{mr.uiParams.get('MANAGER_NAME')}" />


      The below code is id named 'delete' to be shown as popup window, previously it was modalPanel now its been changed to popupPanel richfaces 4.


      <rich:popupPanel xmlns="http://www.w3.org/1999/xhtml"
          xmlns:a4j="http://richfaces.org/a4j" id="delete"
          domElementAttachment="parent" resizeable="false" autosized="true" modal="true" >


          <f:facet name="header">
              <h:outputText value="#{header}" />


          <h:panelGrid columns="2">
              <a4j:commandButton value="Delete"
                  action="#{mr.delete()}" reRender="#{rerender}" status="actionStatus"

                  oncomplete="#{rich:component( fn:join( 'delete') )}.hide(); #{rich:component('mp_errors')}.show();" />




      I think the oncomplete or reRender is not working as correctly. Do anyone have a idea about this?