Re: datefiled and null value 2

2012-09-07 Thread arterzatij
thanks my bad... -- View this message in context: http://tapestry.1045711.n5.nabble.com/datefiled-and-null-value-2-tp5716109p5716129.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-ma

Re: datefiled and null value 2

2012-09-07 Thread Muhammad Gelbana
It's "expense*?*.date" *not* "expense.date*?*" DateField already handles formatting null values // org.apache.tapestry5.corelib.components.DateField.formatCurrentValue() private String formatCurrentValue() > { > if (value == null) > return ""; > return format.format(value); > }

Re: datefiled and null value 2

2012-09-06 Thread ICE Ernesto Arteaga Zavala
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 characte

Re: datefiled and null value 2

2012-09-06 Thread Muhammad Gelbana
Check this page: http://tapestry.apache.org/property-expressions.html Search for: Property Chain On Fri, Sep 7, 2012 at 1:15 AM, arterzatij wrote: > Hi all, > >There is a way to display an empty datefiled avoiding the NPE, I have > the > next code on my tml file > > > > > but if the dat