RichFaces 5 compatibility with JSF 2.1 or with RF4 ?

Brian Leathem richfaces-dev at lists.jboss.org
Fri Nov 15 11:51:32 EST 2013


{quote:modifiedtitle=true|class=jive_text_macro jive_macro_quote}
Juraj Húska wrote:



I have found out that RichFaces 5 pickList attribute columnClass is incompatible with the RichFaces 4 one.  However, the RF5 one behaves as JSF 2.1. dictates.

{quote}

Te be clear, the RF 4 approach:
{quote:class=jive_text_macro jive_macro_quote}
Assigns one or more space-separated CSS class names to the columns of the table. If the CSS class names are comma-separated, each class will be assigned to a particular column in the order they follow in the attribute. *If you have less class names than columns, the class will be applied to every n-fold column where n is the order in which the class is listed in the attribute.* If there are more class names than columns, the overflow ones are ignored.

{quote}

And the JSF approach:
{quote:class=jive_text_macro jive_macro_quote}
Comma-delimited list of CSS style classes that will be applied to the columns of this table. A space separated list of classes may also be specified for any individual column. *If the number of elements in this list is less than the number of actual column children of the UIData, no "class" attribute is output for each column greater than the number of elements in the list*. If the number of elements in the list is greater than the number of actual column children of the UIData, the elements at the posisiton in the list after the last column are ignored.

{quote}

This is a pretty significant disparity.  It seems to me we would benefit from an additional attribute that let's one toggle between the above approaches.  Or perhaps extending the syntax to indicate the columsn should be repeated.  eg.

{code:jivemacro_uid=_13845342837466820|class=jive_text_macro _jivemacro_uid_13845342837466820 jive_macro_code}
<r:dataTable ... columnClasses = "class1, class2, *" >
{code}

where the final splat indicates we want the classes to repeat.

Posted by forums
Original post: https://community.jboss.org/message/845935#845935



More information about the richfaces-dev mailing list