tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Zeigler (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (TAP5-1839) Map property expression wrong parsing
Date Mon, 06 Feb 2012 17:53:59 GMT

     [ https://issues.apache.org/jira/browse/TAP5-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Zeigler closed TAP5-1839.
--------------------------------

    Resolution: Invalid
      Assignee: Robert Zeigler

The property expression language can't handle embedded expressions. No property expression
of the form "prop:foo ${bar}" is expected to work. 

Instead, move your messages to the class so you can access them as properties:

{true: trueLabel, false: falseLabel}

Where trueLabel and falseLabel are methods in your page/component class:
  public String getTrueLabel() {
    return messages.get("true");
 }
 public String getFalseLabel() {
    return messages.get("false");
 }
}

                
> Map property expression wrong parsing
> -------------------------------------
>
>                 Key: TAP5-1839
>                 URL: https://issues.apache.org/jira/browse/TAP5-1839
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3
>            Reporter: Mihail Slobodyanuk
>            Assignee: Robert Zeigler
>
> If define SelectModel as "model={true:${message:true}, false:${message:false}}" then
this expression parsed as String, but not as map.

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

        

Mime
View raw message