[richfaces-issues] [JBoss JIRA] (RF-12218) Using quotes in cdk:call expression generate a broken class

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Fri May 18 06:21:18 EDT 2012


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

Lukáš Fryč commented on RF-12218:
---------------------------------

I don't think XML allows use single quotes, does it?
                
> Using quotes in cdk:call expression generate a broken class
> -----------------------------------------------------------
>
>                 Key: RF-12218
>                 URL: https://issues.jboss.org/browse/RF-12218
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: cdk
>    Affects Versions: 4.2.1.Final
>         Environment: All
>            Reporter: Paul Dijou
>            Priority: Critical
>              Labels: cdk, richfaces, waiting_on_user
>
> If I need to pass a String to a {{<cdk:call expression="..."}}, I'm forced to indicate that's it's a String and not a var. Since I can't use double-quote, the only solution I see is doing the same as in EL : single quote. But it looks like the CDK only copy/paste the expression in the Java code. Problem is single quote in Java class are not what I wanted (and crash the class).
> For example :
> {code:xml}
> <cdk:call expression="renderFacet('brand', facesContext, component)" />
> {code}
> will generate
> {code:java}
> renderFacet('brand', facesContext, component);
> {code}
> but it should generate
> {code:java}
> renderFacet("brand", facesContext, component);
> {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

       



More information about the richfaces-issues mailing list