4 Replies Latest reply on Aug 26, 2012 5:35 AM by strannik

    a4j:status does not return

    fipp

      hi,

       

      i've a question on a4j:status. i'm using RF 4.1.0 with a a4j:status and a rich:dataTable with sorting and filtering function

      the code for the a4j:status is the following:

      <a4j:status>

                                  <f:facet name="start">

                                      <h:graphicImage name="images/loading.gif" alt="ai" />

                                  </f:facet>

                                  <f:facet name="stop">

                                      <a4j:commandLink render="tool_form" execute="@form">

                                          <h:graphicImage name="images/refresh.png" style="border:0 " />

                                      </a4j:commandLink>

                                  </f:facet>

      </a4j:status>

       

      the thing i want to do is to show an up and an down arrow (bullet_arrow_down.png,bullet_arrow_up.png)when clicking on the header commandLink in the table. that means i've to render the table header and not only the table body like for sorting. if i only render the table body with render=tableid@body sorting works fine and a4j:status shows the correct icons. but when i render the table header with render=tableid@header the a4j:status shows the loading.gif and does not return to the refresh icon.

       

      the code for the table ist the following:

       

      <rich:dataTable value="#{toolListBean.toolList}" var="tool"

                              id="toolsTable" rows="12" rowClasses="even-row,odd-row"

                              styleClass="stable" sortMode="multi">

       

                              <rich:column sortBy="#{tool.toolName}"

                                  sortOrder="#{toolsSortingBean.namesOrder}" id="column">

                             

                                  <f:facet name="header">

                                      <a4j:commandLink value="Name" render="toolsTable@header toolsTable@body"  

                                          action="#{toolsSortingBean.sortByNames}" />

                                      <h:graphicImage name="images/bullet_arrow_down.png"

                                          rendered="#{toolsSortingBean.namesOrder=='descending'}" />

                                      <h:graphicImage name="images/bullet_arrow_up.png"

                                          rendered="#{toolsSortingBean.namesOrder=='ascending'}" />

                                  </f:facet>

                                 

       

                                  <h:outputText value="#{tool.toolName}" />

                              </rich:column>

       

                              <rich:column sortBy="#{tool.toolNumber}"

                                  sortOrder="#{toolsSortingBean.numberAsStringOrder}">

                                  <f:facet name="header">

                                      <a4j:commandLink value="String Number" render="toolsTable@body"

                                          action="#{toolsSortingBean.sortNumberAsString}" />

                                  </f:facet>

                                  <h:outputText value="#{tool.toolNumber}" />

                              </rich:column>

      </rich:dataTable>

       

      can anyone help?

      regards

      fipp