You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Mihail Slobodyanuk (Created) (JIRA)" <ji...@apache.org> on 2012/02/06 18:35:59 UTC
[jira] [Created] (TAP5-1839) Map property expression wrong parsing
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
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
[jira] [Commented] (TAP5-1839) Map property expression wrong
parsing
Posted by "Robert Zeigler (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201427#comment-13201427 ]
Robert Zeigler commented on TAP5-1839:
--------------------------------------
You could also do something like:
{true: label('true'), false: label('false')}
With a method:
public String label(String key) {
return messages.get(key);
}
> 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
[jira] [Closed] (TAP5-1839) Map property expression wrong parsing
Posted by "Robert Zeigler (Closed) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Closed] (TAP5-1839) Map property expression wrong parsing
Posted by "Robert Zeigler (Closed) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (TAP5-1839) Map property expression wrong
parsing
Posted by "Robert Zeigler (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201427#comment-13201427 ]
Robert Zeigler commented on TAP5-1839:
--------------------------------------
You could also do something like:
{true: label('true'), false: label('false')}
With a method:
public String label(String key) {
return messages.get(key);
}
> 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