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

Brian Leathem (JIRA) jira-events at lists.jboss.org
Mon Nov 25 13:59:06 EST 2013


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

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

[~jhuska] I think you are not interpreting the docs as intended:

{quote}
When table layout is used, _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.
{quote}

What is meant by this is that the comma character is the column delimeter, and the space character spearates multiple classes to be applied to a single column in the iteration over the columns.

Let me demonstrate with an example:
{code}
columnClasses = class1, class2a class2b, class3, *
{code}

Then I expect a table with 5 columns to have the following classes:

|| column || CSS class ||
| column 1 | class1 |
| column 2 | class2a class2b |
| column 3 | class3 |
| column 4 | class1 |
| column 5 | class2a class2b |

This behavior is confirmed with the richwidget tests:
https://github.com/richwidgets/richwidgets/blob/master/test/widgets/select/ordering-list/ordering-list-options.js#L445
https://github.com/richwidgets/richwidgets/blob/master/test/widgets/select/ordering-list/ordering-list-options.js#L500

If you feel the docs are still unclear, please open a new issue addressing the documentation of the _columnClasses_ attribute.
                
> 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
>            Assignee: Brian Leathem
>             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