0 Replies Latest reply on Jun 29, 2009 11:18 AM by Tom Fusillo

    Columns attribute label

    Tom Fusillo Newbie


      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


      Here's the jsp code:

      <f:subview id="allDataTables">
       <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]}"
       <f:facet name="header">
       <h:outputText id="colName" value="#{col}" />
       <h:outputText id="rowData" value="#{item[index]}" />
       <f:facet name="footer">
       <rich:datascroller maxPages="5" renderIfSinglePage="false"/>
       <h:panelGrid columns="2">
       <h:outputText value="# of Rows: " />
       <h:inputText value="#{login.rows}">
       <a4j:support event="onblur" reRender="currentTable"/>