You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Josh Canfield (JIRA)" <ji...@apache.org> on 2011/08/24 15:39:29 UTC

[jira] [Commented] (TAP5-1615) Add not null check expression syntax

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

Josh Canfield commented on TAP5-1615:
-------------------------------------

Please provide a specific use case where this syntax provides some benefit.


> Add not null check expression syntax
> ------------------------------------
>
>                 Key: TAP5-1615
>                 URL: https://issues.apache.org/jira/browse/TAP5-1615
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Denis Stepanov
>         Attachments: tapestry-notnull.patch
>
>
> New sytax will allow to check if expression result is not null
> value="prop?" - returns true if "prop" is not null
> value="prop.a.b.c?"  returns true if "c" is not null
> value="prop?.a?.b?.c?" returns true if "c" is not null
> value="m()?" returns true if result of the method "m" is not null

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira