Thank you, it works very well !

Is it possible to use this syntax in other cases? For example adding a
"else"?

I tried to add ":" like this :
 ${user.shop?.shoCode:"No Data"} 
and it doesn't work.

Does someone know a way to do that?

Thanks !


Pierce T. Wetter III-3 wrote:
> 
> 
> On May 11, 2010, at 5:59 AM, Claude Dubois wrote:
> 
>   The problem is slightly different then just being a null. The problem is
> that shop is null, so user.getShop().getShoCode() throws an exception. So
> the problem is that one step removed from the value to be displayed is a
> null.
> 
>   You can deal with this more easily by using the ?. operator. 
> 
>   ${user.shop?.shoCode}
> 
>   ?. will stop if shop is null. 
> 
>   Pierce
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 


-----
Claude Dubois
-- 
View this message in context: 
http://old.nabble.com/How-to-use-a-grid-with-some-%22null%22-cells-tp28521840p28534060.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to