5 Replies Latest reply on May 15, 2008 10:00 AM by Thai Dang Vu

    rich:dataTable very sensitive to ajax request?

    Thai Dang Vu Apprentice

      That means when an ajax request is sent, the rich:dataTable data is reloaded (the sql statements executed tell me so). I have 2 situations to notice that.

      The 1st is:

      <a4j:form>
       <h:outputText value="Change skin to:"/>
       <rich:spacer width="20"/>
       <h:commandLink value="DeepMarine">
       <a4j:actionparam name="skin" value="deepMarine" assignTo="#{skinBean.skin}"/>
       </h:commandLink>
       <rich:spacer width="20"/>
       <h:commandLink value="BlueSky">
       <a4j:actionparam name="skin" value="blueSky" assignTo="#{skinBean.skin}"/>
       </h:commandLink>
       <rich:spacer width="20"/>
      </a4j:form>
      <rich:dataTable ... />
      It doesn't matter if a4j:form or h:form is used. Anytime I change the skin, the rich:dataTable content is reloaded.

      The 2nd situation is:
      <a4j:form>
       <a4j:commandButton ... />
       <a4j:commandButton immediate="true"/>
       <rich:dataTable ... />

      The 2 command buttons don't specify the rich:dataTable id in their reRendered attributes, but the rich:dataTable is reloaded when any button is clicked.

      I don't want the rich:dataTable to be re-loaded if I don't specify its id in the reRendered attribute. How can I do that?