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

    a4j:commandLink problem with richfaces 4

    senthilnz

      Hi,

       

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

       

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

       

      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:ui="http://java.sun.com/jsf/facelets"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:rich="http://richfaces.org/rich"
          xmlns:a4j="http://richfaces.org/a4j" id="delete"
          domElementAttachment="parent" resizeable="false" autosized="true" modal="true" >

       

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

       

          <a4j:region>
       
         
          <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();" />
          </h:panelGrid>
          </a4j:region>       

       

      </rich:popupPanel>

       

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

       

      -Thanks