On May 11, 2010, at 5:59 AM, Claude Dubois wrote: > > You put me on the right way. > It still didn'twork using the <t:parameter> tag, so I tried to add a <t:if>. > > My tml looks like that : > > <t:parameter name="shopCell"> > <t:if test="user.shop"> > ${user.shop.shoCode} > </t:if> > </t:parameter> > > Using this method it works well. > > Thanks for your help
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