[richfaces-issues] [JBoss JIRA] (RF-12248) CDK: Auto-casting #{component} inside the encodeBegin / encodeEnd methods

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Mon May 14 12:24:18 EDT 2012


     [ https://issues.jboss.org/browse/RF-12248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukáš Fryč updated RF-12248:
----------------------------

    Description: 
When using
{code}#{component}{code}
expression in templates.

It results into using
{code}UIComponent component{code}
which needs to be casted explicitly.

----

E.g.: {{castComponent}} method used in [{{alert.template.xml}}|https://github.com/richfaces/sandbox/blob/bbdaa1ee7bfde58f87fa2d909cc87cb726822919/bootstrap/ui/src/main/templates/org/richfaces/bootstrap/alert.template.xml#L15] and defined in [{{AlertRendererBase}}|https://github.com/richfaces/sandbox/blob/bbdaa1ee7bfde58f87fa2d909cc87cb726822919/bootstrap/ui/src/main/java/org/richfaces/bootstrap/renderkit/AlertRendererBase.java#L44]

    
> CDK: Auto-casting #{component} inside the encodeBegin / encodeEnd methods
> -------------------------------------------------------------------------
>
>                 Key: RF-12248
>                 URL: https://issues.jboss.org/browse/RF-12248
>             Project: RichFaces
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: cdk
>    Affects Versions: 4.2.0.Final
>            Reporter: Paul Dijou
>
> When using
> {code}#{component}{code}
> expression in templates.
> It results into using
> {code}UIComponent component{code}
> which needs to be casted explicitly.
> ----
> E.g.: {{castComponent}} method used in [{{alert.template.xml}}|https://github.com/richfaces/sandbox/blob/bbdaa1ee7bfde58f87fa2d909cc87cb726822919/bootstrap/ui/src/main/templates/org/richfaces/bootstrap/alert.template.xml#L15] and defined in [{{AlertRendererBase}}|https://github.com/richfaces/sandbox/blob/bbdaa1ee7bfde58f87fa2d909cc87cb726822919/bootstrap/ui/src/main/java/org/richfaces/bootstrap/renderkit/AlertRendererBase.java#L44]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list