7 Replies Latest reply on Mar 15, 2011 4:45 AM by Ilya Shaikovsky

    Ajax can't render rich:collapsibleSubTable

    ta khoa Newbie

      Hello everybody, The following source is used to add comments to a list of messages (my Richfaces version is 4.0.0.20110227-CR1.)

       

      <rich:dataTable value="#{messages}" var="message">

          <rich:column>

              <rich:collapsibleSubTableToggler for="comments"/>

          </rich:column>

          <rich:column>

              <h:outputText value="#{message.content}" />

          </rich:column>

          <rich:collapsibleSubTable value="#{message.comments}" var="comment" id="comments" expandMode="client">

              <rich:column>

                  <h:graphicImage id="avatar" value="../../../images/activity/avatar.png" />

              </rich:column>

              <rich:column>

                  <h:outputText value="#{comment.content}" />

              </rich:column>

          </rich:collapsibleSubTable>

          <rich:column>

              <h:inputTextarea>..........<h:inputTextarea>

              <a4j:commandButton action="..." value="Add comment" render="#{rich:findComponent('comments').id}" />

          </rich:column>

      </rich:dataTable>

       

      When button "Add comment" was clicked, I checked ajax response and saw the new comment was added, ajax response includes this new information, but the new comment was not rendered in html page.

       

      Anyone knows why, please help, thanks.