RE: Null Date in a Contrib:Table

2006-06-26 Thread Manuel Thurn
possibility to override this default behavior? Manuel -Original Message- From: Shing Hing Man [mailto:[EMAIL PROTECTED] Sent: Freitag, 23. Juni 2006 08:55 To: Tapestry users Subject: RE: Null Date in a Contrib:Table You could give the following a try. span jwcid=@If condition

Null Date in a Contrib:Table

2006-06-23 Thread Manuel Thurn
Hi! For a project I want to display a list of objects in an html table. I'm using the Table component of the contrib library of Tapestry. One column should show a formatted Date (or Calendar) object. It works fine as long as the Date is not null. But if the database contains objects with null

Null Date in a Contrib:Table

2006-06-23 Thread Manuel Thurn
Hi! For a project I want to display a list of objects in an html table. I'm using the Table component of the contrib library of Tapestry. One column should show a formatted Date (or Calendar) object. It works fine as long as the Date is not null. But if the database contains objects with null

Re: Null Date in a Contrib:Table

2006-06-23 Thread Shing Hing Man
Have you consider wrapping your component 'creationDateFormat' with an If component - so that the date is only rendered if it is not null ? There might be a drawback with the above approach. The default sorting on your date column might not work. Shing --- Manuel Thurn [EMAIL PROTECTED]

RE: Null Date in a Contrib:Table

2006-06-23 Thread Manuel Thurn
name=format value=dateFormat/ /component Manuel -Original Message- From: Shing Hing Man [mailto:[EMAIL PROTECTED] Sent: Freitag, 23. Juni 2006 06:53 To: Tapestry users Subject: Re: Null Date in a Contrib:Table Have you consider wrapping your component 'creationDateFormat

RE: Null Date in a Contrib:Table

2006-06-23 Thread Shing Hing Man
=components.table.tableRow.creationDate.time/ binding name=format value=dateFormat/ /component Manuel -Original Message- From: Shing Hing Man [mailto:[EMAIL PROTECTED] Sent: Freitag, 23. Juni 2006 06:53 To: Tapestry users Subject: Re: Null Date in a Contrib:Table Have you consider