myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (TOBAGO-1737) Dynamic CSS in <tc:style> support inside of <tc:sheet> and <ui:repeat>
Date Thu, 04 May 2017 16:49:04 GMT

    [ https://issues.apache.org/jira/browse/TOBAGO-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15997055#comment-15997055
] 

Hudson commented on TOBAGO-1737:
--------------------------------

SUCCESS: Integrated in Jenkins build Tobago Trunk #876 (See [https://builds.apache.org/job/Tobago%20Trunk/876/])
TOBAGO-1737: Dynamic CSS in <tc:style> support inside of <tc:sheet> and <ui:repeat>
fix null handling (lofwyr: [http://svn.apache.org/viewvc/?view=rev&rev=1793828])
* (edit) tobago-trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/CustomClass.java
* (edit) tobago-trunk/tobago-core/src/test/java/org/apache/myfaces/tobago/renderkit/css/CustomClassUnitTest.java


> Dynamic CSS in <tc:style> support inside of <tc:sheet> 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
>             Fix For: 3.1.0
>
>
> 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)

Mime
View raw message