5 Replies Latest reply on Dec 17, 2007 4:07 AM by dkane

    datascroller in table facet : not working in 3.1.2.SP1

    dkane

      Hello

      In earlier versions of Richfaces I were able to use datascroller as follows :

      <rich:dataTable id="userTbl"
       value="#{userList}"
       width="700"
       var="userRecord"
       rows="10">
      
       <f:facet name="header">
       <rich:datascroller for="userTbl" align="left"/>
       </f:facet>
      .....
      
      </rich:dataTable>
      


      With 3.2.1 SP1 I had to move all datascrollers out of datatables.
      Otherwise no rows are displayed at all, but datascroller only.
      The same result is for footer.
      Is it some new rule or just a bug ?

      Thank you.


        • 1. Re: datascroller in table facet : not working in 3.1.2.SP1
          jonckvanderkogel

          Hi,
          Putting a datascroller in the header/footer does work in 3.1.2.SP1, could you perhaps post your complete code?

          Regards, Jonck

          • 2. Re: datascroller in table facet : not working in 3.1.2.SP1
            dkane

             

            <rich:dataTable id="userTbl" value="#{userList}" width="700"
             var="userRecord" rowClasses="#{userAdmin.userListStyles}"
             rows="10">
            
             <a:support event="onRowClick" reRender="userTbl,userDetail">
             <a:actionparam name="uId" value="#{userRecord.userId}"
             assignTo="#{userAdmin.currentRowUserId}" />
             </a:support>
            
             <f:facet name="footer">
             <rich:datascroller for="userTbl" align="left" />
             </f:facet>
            
             <rich:column>
             <f:facet name="header">Name</f:facet>
             <h:outputText value="#{userRecord.name}" />
             </rich:column>
            
             <rich:column>
             <f:facet name="header">Login</f:facet>
             <h:outputText value="#{userRecord.login}" />
             </rich:column>
            
             <rich:column>
             <f:facet name="header">Active</f:facet>
             <h:selectBooleanCheckbox value="#{userRecord.status}" />
             </rich:column>
            
             <rich:column>
             <f:facet name="header">Group</f:facet>
             <h:outputText value="#{userRecord.group.name}" />
             </rich:column>
            
             <rich:column>
             <f:facet name="header"> </f:facet>
            
            
            
             <a:commandLink value="delete" id="delLink"
             rendered="#{userRecord.userId > 0}"
             onclick="Event.stop(event||window.event);">
             <rich:toolTip event="onclick" verticalOffset="0"
             horizontalOffset="0" mode="client" layout="block"
             styleClass="admtooltip">
             <span style="white-space: nowrap"> Confirm <br />
             <br />
             <a:commandLink value="Delete"
             actionListener="#{userAdmin.deleteUser}"
             reRender="userTbl,userDetail"
             onclick="Event.stop(event||window.event);" />
             <a:commandLink value="Cancel"
             onclick="Event.stop(event||window.event);" reRender="userTbl" />
             <br />
             </span>
             </rich:toolTip>
             </a:commandLink>
             </rich:column>
            
             </rich:dataTable>
            


            • 3. Re: datascroller in table facet : not working in 3.1.2.SP1
              dkane

              It looks fine in Richfaces visual editor (JBoss tools), BTW
              Both table content and footer with datascroller are visible.
              But not in runtime.

              • 4. Re: datascroller in table facet : not working in 3.1.2.SP1
                jonckvanderkogel

                I only got the dataScroller to work in the header/footer facet when the facet tags followed directly after the <rich:dataTable> tag. In your code I see that you placed an <a:support> tag between the <rich:dataTable> and the <f:facet> tag. Perhaps you could try moving the <a:support> tag below the <f:facet> tag?

                Kind regards, Jonck

                • 5. Re: datascroller in table facet : not working in 3.1.2.SP1
                  dkane

                   

                  "jonckvanderkogel" wrote:
                  Perhaps you could try moving the <a:support> tag below the <f:facet> tag?
                  Kind regards, Jonck


                  Thank you for the idea.
                  It did not help.
                  And it must not, I think. XML parsers must not pay attention to the order of the same-level tags.