<t:datefield t:id="date" value="expense?.date" style="width: 7em;" />

Check this page: http://tapestry.apache.org/property-expressions.html
Search for:  Property Chain

On Fri, Sep 7, 2012 at 1:15 AM, arterzatij <arterza...@gmail.com> wrote:

> Hi all,
>
>    There is a way to display an empty datefiled avoiding the NPE, I have
> the
> next code on my tml file
>
> <t:datefield t:id="date" value="expense.date" style="width: 7em;" />
>
>
>  but if the date is null, tapestry rise the NPE...
>
> Failure reading parameter 'value' of component expenses/Expenses:date:
> Property 'expense' (within property expression 'expense.date', of
> com.rimsamex.app.expenses.pages.Expenses@1b26a992) is null.
>
>
> So, if the value is null I want to display an empty field, How can I reach
> that?
>
> Thanks in advance!
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/datefiled-and-null-value-2-tp5716109.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