Udo Schnurpfeil created TOBAGO-1737:
---------------------------------------
Summary: Dynamic CSS in <tc:style> support inside of <tc:shett>
and <ui:repeat>
Key: TOBAGO-1737
URL: https://issues.apache.org/jira/browse/TOBAGO-1737
Project: MyFaces Tobago
Issue Type: Improvement
Components: Core
Reporter: Udo Schnurpfeil
Assignee: Udo Schnurpfeil
Example:
{code}
<ui:repeat value="#{bean.entries}" var="entry">
<tc:panel>
<tc:style customClass="#{entry.author == request.remoteUser ? 'self' :
'notself'}"/>
</tc:panel>
</ui:repeat>
{code}
Currently the customClass will only evaluated one, so the style class would be
the same for all entries.
The improvement would be, that the evaluation will be done for each component,
to give each component it individual style depending on its data.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)