3 Replies Latest reply on Feb 16, 2009 9:20 AM by Mike Hanafey

    rich:dataTable with two table rows for each model rows does

    Mike Hanafey Newbie

      I want to output two rows in a table for each element of the model. For example, current values might be displayed in odd numbered rows followed by a row with input elements to change the values.

      Seems this could be done with a rich:column and the breakbefore option, and this almost works. The problem is the table ends up with extra blank columns corresponding the total number of column elements nested inside the dataTable. In other words, it counts the columns corresponding to the breakbefore column, and subsequent columns.

      I figured specifying the "columns" attribute on the dataTable with the correct number would fix this, but this attribute has no effect.

      There does not appear to be a attribute on the column element to prevent it from being used to calculate the table width.

      Is this a bug, or am I missing something. Examples of breakbefore all are connected with concurrent use of the "colspan" attribute, but in my case colspan=1 -- I just want two rows.