[richfaces-issues] [JBoss JIRA] (RF-13348) pickList - columnClass attribute behaves differently than in RF4

Brian Leathem (JIRA) jira-events at lists.jboss.org
Fri Nov 15 14:57:07 EST 2013


    [ https://issues.jboss.org/browse/RF-13348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924167#comment-12924167 ] 

Brian Leathem commented on RF-13348:
------------------------------------

The _columnClasses_ attribute doc describes the fix implemented:

{quote}
_columnClasses_ specifies a comma-delimited list of CSS style classes to apply to each column.
A space separated list of classes may be specified for an individual column.

If the number of classes in this list is less than the number of column children, then no class will be
applied to the columns greater than the number of classes.  If however the final class in the list is the `*`
character, the classes will instead be applied in a repeating manner every n-fold column, where n is the order
the class in this list.

If there are more class names than columns, the overflow ones are ignored.
{quote}
                
> pickList - columnClass attribute behaves differently than in RF4
> ----------------------------------------------------------------
>
>                 Key: RF-13348
>                 URL: https://issues.jboss.org/browse/RF-13348
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-selects
>    Affects Versions: 5.0.0.Alpha2
>            Reporter: Juraj Húska
>             Fix For: 5.0.0.Alpha2
>
>
> {{collumnClass}} attribute of {{r:pickList}} behaves in this way in *RF5*:
> Suppose a {{pickList}}, which items consist from _three_ columns.
> * if you set {{collumnClass}} to: {{foo bar}}, then first column has class {{foo}}, the second one {{bar}}
> * if you set it to {{foo, bar}}, then the first column has class {{foo,bar}} - expected
> In *RF4*, it was different though:
> * it worked as {{collumnClass}} for {{dataTable}}. Literally as it is described in VDL doc:
> bq. 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.
> The way how it worked in RF4 seems more reasonable for me. What is your opinion on this ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list