Hi Muhammad, thanks for quick ans but I try it before but I got the next exp...
Exception assembling root component of page expenses/Expenses: Could not convert 'expense.date?' into a component parameter binding: Error parsing property expression 'expense.date?': Unable to parse input at character position 14. 2012/9/6 Muhammad Gelbana <m.gelb...@gmail.com> > <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 > > > > > -- Saludos, ------------------------------------------------------------------- "Nada que se consiga sin pena y sin trabajo es verdaderamente valioso." Joseph Addison ------------------------------------------------------------------- ICE Ernesto Arteaga Zavala Ingeniero de Desarrollo