0 Replies Latest reply on Jun 29, 2009 11:18 AM by tom.fusillo

    Columns attribute label

    tom.fusillo

      Hi,

      I have extended data table that I populate dynamically using rich:columns. Everything is working except for the context menu in the column header. It doesn't associate the column name with the check box. There's an example in the image below.

      I've tried using the label attribute in rich:columns but that only throws an error saying "Unable to find setter method for attribute: label." I noticed in the ColumnsTag API that there isn't a set method for label and thought this might have something to do with it.

      I'm currently using:
      RichFaces 3.3.2-Snapshot
      Apace Tomcat 6.0.18

      [IMG]http://i939.photobucket.com/albums/ad234/rockyfuz/columns.png[/IMG]

      Here's the jsp code:

      <f:subview id="allDataTables">
       <h:form>
       <rich:extendedDataTable id="currentTable" value="#{tree.tables}" width="900"
       rows="#{login.rows}" sortMode="single" selectionMode="multi" var="item" height="463">
       <rich:columns index="index" value="#{tree.columns}" var="col" sortOrder="#{tables.sortOrders[col]}"
       sortBy="#{item[index]}">
       <f:facet name="header">
       <h:outputText id="colName" value="#{col}" />
       </f:facet>
       <h:outputText id="rowData" value="#{item[index]}" />
       </rich:columns>
       <f:facet name="footer">
       <rich:datascroller maxPages="5" renderIfSinglePage="false"/>
       </f:facet>
       </rich:extendedDataTable>
       <h:panelGrid columns="2">
       <h:outputText value="# of Rows: " />
       <h:inputText value="#{login.rows}">
       <a4j:support event="onblur" reRender="currentTable"/>
       </h:inputText>
       </h:panelGrid>
       </h:form>
      </f:subview>