[jira] [Commented] (TOBAGO-1748) Implement rendered attribute for <tc:style>

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (TOBAGO-1748) Implement rendered attribute for <tc:style>

My Faces - Dev mailing list

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

Henning Noeth commented on TOBAGO-1748:

The solution of this task is:
The rendered attribute is implemented. But also 'rendered' is set deprecated.

Instead of using the rendered attribute write:
{code}<tc:style customClass="#{bean.show ? 'YOURCLASS' : '' }"{code}

Or use the rendered attribute of the parent:
{code}<tc:link label="Link" rendered="#{bean.show}">
  <tc:style customClass="YOURCLASS"/>
<tc:link label="Link" rendered="#{!bean.show}"/>{code}

> Implement rendered attribute for <tc:style>
> -------------------------------------------
>                 Key: TOBAGO-1748
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1748
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 3.0.4
>            Reporter: Henning Noeth
>            Assignee: Henning Noeth
> {code}<tc:link label="Link" ...>
>   <tc:style height="200px" rendered="#{controller.renderStyle}"/>
> </tc:link>{code}
> The rendered attribute of tc:style has no effect.

This message was sent by Atlassian JIRA