[jira] [Commented] (TAP5-1495) tapestry expressions should support a map creation

2011-04-03 Thread Howard M. Lewis Ship (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2011-04-03 Thread Robert Zeigler (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2011-04-02 Thread Igor Drobiazko (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2011-04-02 Thread Howard M. Lewis Ship (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2011-04-02 Thread Robert Zeigler (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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