How does it differ from existing syntax? See the examples here:

http://tapestry.apache.org/property-expressions.html

On Tue, Aug 23, 2011 at 1:14 PM, Denis Stepanov <denis.stepa...@gmail.com>wrote:

> Hello,
>
> I would like to suggest a new syntax for checking if the property
> expression value is a null:
>
> > value="?prop"
>
>
> will return false if property "prop" is null or true if not
>
> > value="?prop.a.b.c"
>
>
> will return false if property "c" is null or true if not
>
> > value="?prop?.a?.b?.c"
>
> will return false if one of the properties is null.
>
> > value="prop"
>
>
> will call toString to convert it to a boolean, is not the best way how to
> implement a null check.
>
> We have isNotNull component, which I would like to eliminate.
>
> Denis
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: dev-h...@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de

Reply via email to