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

Paul Dijou (JIRA) jira-events at lists.jboss.org
Sun Apr 29 15:37:17 EDT 2012


Paul Dijou created RF-12218:
-------------------------------

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


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