Re: DefaultDataTable with date column

2009-05-11 Thread Edi
uot;Edgar Merino" > Sent: Thursday, October 02, 2008 5:19 AM > To: > Subject: Re: DefaultDataTable with date column > >> Or simply use an AbstractColumn for that, you can even create a reusable >> DateColumn: >> >> public class DateColumn extends Abstrac

Re: DefaultDataTable with date column

2008-10-02 Thread Pablo S.
Great! this is just what I need Thanks Pablo -- From: "Edgar Merino" <[EMAIL PROTECTED]> Sent: Thursday, October 02, 2008 5:19 AM To: Subject: Re: DefaultDataTable with date column Or simply use an AbstractColumn for that, you c

Re: DefaultDataTable with date column

2008-10-02 Thread Edgar Merino
Or simply use an AbstractColumn for that, you can even create a reusable DateColumn: public class DateColumn extends AbstractColumn { private String datePattern; //you can have a Pattern instead //You can overload the constructor, to have default date patterns for example public Date

Re: DefaultDataTable with date column

2008-10-01 Thread Jeremy Thomerson
as a Date property, called "deliveryDate" > > > > When the html is rendered, the date appears as "00:00" instead of > > "2000/01/02". The only way I found, to solve this, is adding a String > > property that represents the date in the format I want,

Re: DefaultDataTable with date column

2008-10-01 Thread Phil Grimm
hat > should exist a better solution. > > Thanks > Pablo > -- > From: "Edgar Merino" <[EMAIL PROTECTED]> > Sent: Wednesday, October 01, 2008 7:28 PM > To: > Subject: Re: DefaultDataTable with date column > > > U

Re: DefaultDataTable with date column

2008-10-01 Thread Pablo S.
format I want, but I suppose that should exist a better solution. Thanks Pablo -- From: "Edgar Merino" <[EMAIL PROTECTED]> Sent: Wednesday, October 01, 2008 7:28 PM To: Subject: Re: DefaultDataTable with date column Use java.text.DateFo

Re: DefaultDataTable with date column

2008-10-01 Thread Edgar Merino
Use java.text.DateFormat for that matter (take a look at SimpleDateFormat in case you need more control over how you want your date to be formatted). Edgar Merino Pablo S. escribió: Hi, I would like to know how I can format a value from 1 column that is a date. I've a sortable dataprovider t

DefaultDataTable with date column

2008-10-01 Thread Pablo S.
Hi, I would like to know how I can format a value from 1 column that is a date. I've a sortable dataprovider that contains my object, and one of the fields is a date. The html table shows the digits of the hour of the date (example: "00:00") instead of something like this "2000/02/03" Thanks