Sylvain Vieujot wrote:
Thank you for your message.
I guess you have this problem because your initial backing bean property is null.

yeah, it's just been created.

So, I think a simpler fix is to never have userData properties null.
I just changed the UserData constructor to set the time to now if the backing bean is null.

Yes that would be the better idea. d'oh. However I'm not sure that setting it to the current time would be the correct behaviour, for example: if I were to use SimpleDateFormat("hh mm ss").parse("19 00 00") I would get a date representing 7pm on 1st January 1970, similarly if you used SimpleDateFormat("dd MM YYYY").parse("01 01 2000") you get get a date representing Midnight on 1st January 2000. Hence perhaps you should set the date to be unix 0 time.


Thanks,
andy
--
Andrew Thornton
[EMAIL PROTECTED]

Reply via email to