0 Replies Latest reply on Mar 8, 2008 7:24 PM by Henk Haveman

    rich;dataTable reRender

    Henk Haveman Newbie

      Hello list,

      I have a problem using the rich:dataTable tag.

      I have a a4j:commandButton executing some code and rerendering part of the screen. At another point of the screen I have a rich:dataTable which should not be rerendered, but it does. If I replace the rich:datatabele by a h:datatable everything works as I would expect, but I prefer to use the rich:datatable. Does anybody know what I am doing wrong.

      Henk

      this is the jsp code. The button with value "Wissen" is pushed and it results in the backing bean "rit.rittenByWeek" being executed.


      <h:form id="f1">
      <rich:panel header="Route">
      <h:panelGrid columns="2" id="modify">
      <h:outputText value="Beginstand"/>
      <h:inputText value="#{rit.rit.beginstand}"/>
      </h:panelGrid>
      <a4j:commandButton value="showList" action="#{rit.wissen}" reRender="f2:showList"/>
      <a4j:commandButton value="Wissen" action="#{rit.wissen}" reRender="f1:modify"/>
      </rich:panel>

      <h:messages></h:messages>

      <a4j:status startText="Start"></a4j:status>
      </h:form>
      <h:form id="f2">

      <a4j:outputPanel id="showList">
      <rich:dataTable value="#{rit.rittenByWeek}" var="r" rows="5">
      <f:facet name="header">Ritten</f:facet>
      <h:column>
      <f:facet name="header">
      <h:outputText value="Volgnummer"></h:outputText>
      </f:facet>
      <h:outputText value="#{r.volgnummer}" />
      </h:column>
      </rich:dataTable>
      </a4j:outputPanel>
      </h:form>
      <a4j:log level="ALL" width="800px" height="300px" popup="false"/>
      </f:view>