modify NewspaperTable columnClasses to be more useful
-----------------------------------------------------
Key: MYFACES-1072
URL: http://issues.apache.org/jira/browse/MYFACES-1072
Project: MyFaces
Type: Improvement
Components: Tomahawk
Versions: 1.1.1
Reporter: Lance Frohman
Priority: Minor
Currently the NewspaperTable columnClasses with multiple comma separated
classes work only with the column tags themselves,
not the resulting html columns in the table. This change allows the html table
to have different column classes across all columns in the html table.
Currently, if you declare:
<t:newspaperTable newspaperColumns="3" columnClasses="class1,class2,class3" . .
. >
<t:column>
<f:verbatim>A</f:verbatim>
</t:column>
</t:newspaperTable>
all the columns will be class1
<t:newspaperTable newspaperColumns="3" columnClasses="class1,class2,class3" . .
. >
<t:column>
<f:verbatim>A</f:verbatim>
</t:column>
<t:column>
<f:verbatim>B</f:verbatim>
</t:column>
</t:newspaperTable>
all the As will be class1 and Bs will be class2
with this change
<t:newspaperTable newspaperColumns="3" columnClasses="class1,class2,class3" . .
. >
<t:column>
<f:verbatim>A</f:verbatim>
</t:column>
</t:newspaperTable>
will have the first column class1, the second column class2, the third class3
<t:newspaperTable newspaperColumns="3"
columnClasses="class1,class2,class3",class4,class5,class6" . . . >
<t:column>
<f:verbatim>A</f:verbatim>
</t:column>
<t:column>
<f:verbatim>B</f:verbatim>
</t:column>
</t:newspaperTable>
the first A column will be class1, the first B column class2, the 2nd A column
class 3, the 2nd B column class4, ...
This makes it more flexible.
PLEASE email me at [EMAIL PROTECTED] if there is a problem, or if you have any
questions.
Thank you.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira