7 Replies Latest reply on Jan 6, 2011 1:47 PM by ilya40umov

    a4j:outputPanel ajaxrendered keep on running - richfaces 4

    senthilnz

      Hi,

       

      In my below code it seems the ajax rendering is not working, what happens is while clicking on a link(a4j:commandLink) in the menu item, I call this below code, somehow its not at all called instead the progressbar is keeps running and its never finishes.I would expect to see a popup window with a selection for gender. This was working correctly in rf 3.3.3.

       

      problematic code,

      <ui:composition 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">
          <a4j:outputPanel ajaxRendered="true">
              <rich:tabPanel switchType="ajax"
                  selectedTab="User" width="600px" >
                  <rich:tab name="User" label="General">

                     <ui:decorate template="/template.xhtml">
                            <ui:define name="label">Gender:</ui:define>
                            <h:selectOneMenu  value="#{user.gender}"  required="true" >
                            <f:selectItem itemLabel="Select Gender..." />
                            <f:selectItem itemLabel="Female" itemValue="F" />
                            <f:selectItem itemLabel="Male" itemValue="M" />
                          </h:selectOneMenu>

                    </ui:decorate>                     
                  </rich:tab>
              </rich:tabPanel>
          </a4j:outputPanel>

      </ui:composition>

       

       

      menu link code,

       

      <f:facet name="label">User</f:facet>   
           <rich:menuItem value="Add User">
                   <a4j:commandLink value="Add User" 
                       oncomplete="#{rich:component('User') )}.show()"
                       render="mp_add_#{mr.ui.get('MR_USER')}" />
           </rich:menuItem>

       

      Am I doing something wrong here? I'm asking many questions due to usage of richfaces 4 and I really don't find any documentation on this.

       

      Thanks,

      SK