4 Replies Latest reply on Apr 23, 2008 1:18 AM by a a

    Is this a bug? rich:dataList's elements property can not use

    a a Novice

      This is my code that does not work as wanted:

      
       <rich:tabPanel switchType="client" width="100%">
       <!-- page 1 -->
       <rich:tab label="1" rendered="#{queriedObjects4LatestProductSearchingAction.rowCount>0}">
       <ui:include src="/layout/include/product.dataGrid.template.form.xhtml">
       <ui:param name="value" value="#{queriedObjects4LatestProductSearchingAction}" />
       <ui:param name="columns" value="3" />
      
       <!-- this parameter does not work -->
       <ui:param name="elements" value="6" />
      
       <ui:param name="first" value="0" />
       <ui:param name="columnClasses" value="classForColumn1Of3,classForColumn2Of3,classForColumn3Of3" />
       </ui:include>
       </rich:tab>
       </rich:tabPanel>
      
      
      


      And /layout/include/product.dataGrid.template.form.xhtml

      
       <h:form>
       <!-- parameter[elements] does not work -->
       <rich:dataGrid value="#{value}" var="hot"
       columns="#{columns}"
       elements="#{elements}"
       first="#{first}"
       cellpadding="0"
       cellspacing="0"
       border="0"
       width="100%"
       stateVar="stateVar"
       columnClasses="#{columnClasses}"
       >
      ...
      
       </rich:dataGrid>
       </h:form>