[ 
https://issues.apache.org/jira/browse/TAP5-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644336#action_12644336
 ] 

Howard M. Lewis Ship commented on TAP5-79:
------------------------------------------

Some ideas:

boolean invert:   ! property

comparison operators: lt, lte, gt, gte, eq, ==, neq, !=

(using names rather than symbols because these expressions appear in XML and we 
want to avoid using entities)

simple math: + - * / 

Invocation of methods with parameters (this would require the ability to 
evaluate sub expressions).

Generalized array/list/map access via [ ] operator.
   myarray[0],  mylist[0],  mymap[key]

List creation:  [ 1, 2, 3]

Map creation: { 'fred':'flinstone', 'barney':'rubble' }

List comprehensions / selection/ projection  (syntax TBA)






> T5 support for OGNL or OGNL-like expressions
> --------------------------------------------
>
>                 Key: TAP5-79
>                 URL: https://issues.apache.org/jira/browse/TAP5-79
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Dan Adams
>
> While I really the use of prop and it's typesafeness, I still find myself 
> frequently in need of more complicated expressions enough that I would be 
> willing to pay the speed penalty of reflection in order to not have to define 
> a public getter for it. In some situations, you can't actually make an 
> equivilent getter. For instance, in integrations tests I've had more than one 
> situation where I wanted to  call a setter with a specific value from the 
> template. With OGNL this is easy but with prop it's impossible. I would very 
> much like to see prop remain the default binding but have OGNL available when 
> it's needed. I think not having it would be a severe limitation of T5.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to