1 Reply Latest reply on Oct 18, 2007 6:56 AM by Ilya Shaikovsky

    AJAX4JSF reRender attribute reRenders whole Form

    Bansilal Haudakari Newbie

      I have a situation where reRender attribute reRenders the whole form. Here is the snippet
      <a4j:outputPanel>
      <h:inputText id="description" size="75" value="#{manageAddrBlkBean.addressBlock.description}" >
      <a4j:support event="onfocus" reRender="usrGrpList"/>
      </h:inputText>
      </a4j:outputPanel>

      The moment inputText component gets the Focus the JSF form hangs for a while then i observed from the Log file its reRendering the whole form

      The reRender happens on closing of pop-up window as shown in the following snippet
      <a4j:region>
      <h:panelGrid columns="4" styleClass="detail" columnClasses="label">
      <h:outputText value="Users/User Group" />

      <h:selectOneMenu id="usrGrpList" value="#{manageAddrBlkBean.selectedUserGroup}" >
      <f:selectItem itemLabel="" itemValue="" />
      <f:selectItems value="#{manageAddrBlkBean.userGroupList}" />
      </h:selectOneMenu>

      <h:commandButton id="findUserAndGroup" value="Manage User/UserGroup" immediate="true"
      onmousedown="createPopUp('userAndGroupLookup','find')"
      onclick="return false">
      </h:commandButton>
      <h:message for="usrGrpList" />

      </h:panelGrid>
      </a4j:region>

      Any pointers/suggestions to avoid reRendering of whole form using a4j reRender attribute will be highly appreciated