You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org> on 2017/05/04 13:28:04 UTC

[jira] [Created] (TOBAGO-1737) Dynamic CSS in support inside of and

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)