You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Robert Zeigler (JIRA)" <ji...@apache.org> on 2011/04/02 07:35:05 UTC
[jira] [Created] (TAP5-1495) tapestry expressions should support a
map creation
tapestry expressions should support a map creation
--------------------------------------------------
Key: TAP5-1495
URL: https://issues.apache.org/jira/browse/TAP5-1495
Project: Tapestry 5
Issue Type: Improvement
Components: tapestry-core
Affects Versions: 5.3
Reporter: Robert Zeigler
Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
It would be nice to be able to write:
{a=>b,c=>d}
to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015188#comment-13015188 ]
Robert Zeigler commented on TAP5-1495:
--------------------------------------
Fair enough. For the record, I thought of the map support while considering the need to be able pass request parameters to the link components. Map is a natural fit for that, and it then occurred to me that expression support for maps would be useful.
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (TAP5-1495) Tapestry's property expression
language should support map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Zeigler resolved TAP5-1495.
----------------------------------
Resolution: Fixed
Fix Version/s: 5.3.0
Final map syntax: {a: b, c: d}
> Tapestry's property expression language should support map creation
> -------------------------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
> Fix For: 5.3.0
>
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014998#comment-13014998 ]
Igor Drobiazko commented on TAP5-1495:
--------------------------------------
What is actually the use case?
Currently there is a coercion String->SelectModel:
<t:select value="paymentType" model="literal:cc=Credit Card,bt=Bank Transfer, ca=Cash,pp=PayPal"/>
Maybe we could provide same for String -> Map
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TAP5-1495) Tapestry's property expression
language should support map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Zeigler updated TAP5-1495:
---------------------------------
Summary: Tapestry's property expression language should support map creation (was: tapestry expressions should support a map creation)
> Tapestry's property expression language should support map creation
> -------------------------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015188#comment-13015188 ]
Robert Zeigler commented on TAP5-1495:
--------------------------------------
Fair enough. For the record, I thought of the map support while considering the need to be able pass request parameters to the link components. Map is a natural fit for that, and it then occurred to me that expression support for maps would be useful.
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015186#comment-13015186 ]
Howard M. Lewis Ship commented on TAP5-1495:
--------------------------------------------
I think Igor's point was that there was a need for arrays, to support more complex page activation contexts, but there's no components *currently* in Tapestry that require a literal map syntax ... though I have no doubt that once a literal map syntax exists, it will be utilized.
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) Tapestry's property expression
language should support map creation
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029717#comment-13029717 ]
Hudson commented on TAP5-1495:
------------------------------
Integrated in tapestry-trunk-freestyle #338 (See [https://builds.apache.org/hudson/job/tapestry-trunk-freestyle/338/])
TAP5-1495: Tapestry's property expression language should support map creation
Fix minor typo in plastic documentation
Clarify "parameters" parameter documentation in AbstractLink.
> Tapestry's property expression language should support map creation
> -------------------------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (TAP5-1495) Tapestry's property expression
language should support map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Zeigler resolved TAP5-1495.
----------------------------------
Resolution: Fixed
Fix Version/s: 5.3.0
Final map syntax: {a: b, c: d}
> Tapestry's property expression language should support map creation
> -------------------------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
> Fix For: 5.3.0
>
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015040#comment-13015040 ]
Howard M. Lewis Ship commented on TAP5-1495:
--------------------------------------------
That's not the syntax I'd prefer, as it won't work well inside an XML document such as a Tapestry template: Maybe something more like JSON syntax.
{ 'a': b, 'c': d}
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015042#comment-13015042 ]
Robert Zeigler commented on TAP5-1495:
--------------------------------------
Igor: By that argument, what's the use case for list/array creation support in the property language? We could have provided a coercion from String to List...
Howard: Yeah, the syntax was more just to get the idea down. Json-like syntax might work nicely.
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (TAP5-1495) tapestry expressions should support a
map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Zeigler reassigned TAP5-1495:
------------------------------------
Assignee: Robert Zeigler
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) Tapestry's property expression
language should support map creation
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029717#comment-13029717 ]
Hudson commented on TAP5-1495:
------------------------------
Integrated in tapestry-trunk-freestyle #338 (See [https://builds.apache.org/hudson/job/tapestry-trunk-freestyle/338/])
TAP5-1495: Tapestry's property expression language should support map creation
Fix minor typo in plastic documentation
Clarify "parameters" parameter documentation in AbstractLink.
> Tapestry's property expression language should support map creation
> -------------------------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (TAP5-1495) tapestry expressions should support a
map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Zeigler reassigned TAP5-1495:
------------------------------------
Assignee: Robert Zeigler
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TAP5-1495) Tapestry's property expression
language should support map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Zeigler updated TAP5-1495:
---------------------------------
Summary: Tapestry's property expression language should support map creation (was: tapestry expressions should support a map creation)
> Tapestry's property expression language should support map creation
> -------------------------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Robert Zeigler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015042#comment-13015042 ]
Robert Zeigler commented on TAP5-1495:
--------------------------------------
Igor: By that argument, what's the use case for list/array creation support in the property language? We could have provided a coercion from String to List...
Howard: Yeah, the syntax was more just to get the idea down. Json-like syntax might work nicely.
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015186#comment-13015186 ]
Howard M. Lewis Ship commented on TAP5-1495:
--------------------------------------------
I think Igor's point was that there was a need for arrays, to support more complex page activation contexts, but there's no components *currently* in Tapestry that require a literal map syntax ... though I have no doubt that once a literal map syntax exists, it will be utilized.
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014998#comment-13014998 ]
Igor Drobiazko commented on TAP5-1495:
--------------------------------------
What is actually the use case?
Currently there is a coercion String->SelectModel:
<t:select value="paymentType" model="literal:cc=Credit Card,bt=Bank Transfer, ca=Cash,pp=PayPal"/>
Maybe we could provide same for String -> Map
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1495) tapestry expressions should support
a map creation
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015040#comment-13015040 ]
Howard M. Lewis Ship commented on TAP5-1495:
--------------------------------------------
That's not the syntax I'd prefer, as it won't work well inside an XML document such as a Tapestry template: Maybe something more like JSON syntax.
{ 'a': b, 'c': d}
> tapestry expressions should support a map creation
> --------------------------------------------------
>
> Key: TAP5-1495
> URL: https://issues.apache.org/jira/browse/TAP5-1495
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
>
> Currently, tapestry expressions support property access, method calls, null checks (?.), and quick list creation (['a',b,...]), but there is no support for map creation.
> It would be nice to be able to write:
> {a=>b,c=>d}
> to quickly and easily create maps.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira