[ 
https://issues.jboss.org/browse/RF-11668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12692747#comment-12692747
 ] 

Brian Leathem commented on RF-11668:
------------------------------------

The object generated with the _<cdk:object>_ tag should be explicitly cast to 
class defined by the type attribute of the _<cdk:object>_ tag.

For example, the trivial CDK template fragment:
{code}
<cdk:object name="myVar" type="package.MyClass" value="#{component}" />
{code}

would map into the java code:
{code}
package.MyClass myVar = (package.MyClass) component;
{code}

Right now, the cast is ommitted, and the above EL expression fails.
                
> CDK should support arbitrary objects with the <cdk:object> tag
> --------------------------------------------------------------
>
>                 Key: RF-11668
>                 URL: https://issues.jboss.org/browse/RF-11668
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: cdk
>            Reporter: Brian Leathem
>             Fix For: 4.3.0.Milestone1
>
>
> The _<cdk:object>_ tag should accept arbitrary classes in the _type_ 
> parameter, and perform the cast in the generated code.

--
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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to