tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Drobiazko <igor.drobia...@gmail.com>
Subject Re: Null check property expression syntax
Date Tue, 23 Aug 2011 11:26:55 GMT
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.stepanov@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message