3 Replies Latest reply on Sep 24, 2009 10:12 AM by Mike Hanafey

    rich:columns should allow rich:column to be nested

    Mike Hanafey Newbie

      rich:columns does not seem to allow you to set different styles on the columns in a natural and flexible way.

      For example, rich:column (singular, not plural!) has a style attribue which is applied to the td element that contains the value component, but the content of rich:columns (plural!) does not take a rich:column child, and so there is no place for the style attribute. A style on the value component of course is not applied to the td element. (In reality, a rich:column inside of a rich:columns produces a nested td, which is not too useful).

      If rich:columns properly supported a rich:column child, then all of the attributes of rich:column would be available, which would allow this attributes to be set based on the column iteration variable.

      For example:

      <rich:columns value="#{RestrictionContainer.leadTable.columns}" var="col">
       <rich:column style="#{col.style}">
       <f:facet name="header">
       <h:outputText value="#{col.header}"/>
       </f:facet>
       <h:outputText value="#{x[col.property]}" converter="#{col.converter}" escape="#{col.escape}"/>
       </rich:column>
       </rich:columns>