• Post Reply Bookmark Topic Watch Topic
  • New Topic

RichFaces Calendar Control  RSS feed

 
Craig Corlett
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to use the richfaces calendar control as follows

<rich:calendar value="#{someBean.someDateProperty}" defaultTime="00:00:00"
datePattern="d/M/yy HH:mm:ss" showApplyButton="true" popup="true"/>

I am having trouble with the datePattern, I would like to be able display the date time as follows 13/11/09 17:10:15. The "d/M/yy HH:mm" part works as expected - however when I add in the second component the control does not work as I would have expected. Specifically I'm unable to enter in a value for the 'Seconds' and when I press the 'Apply' button on the calendar the control displays the following:

13/11/09 04:00:ss.

Does anyone have any ideas ?

Thanks




 
Kavita Tipnis
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Richfaces calendar component does not support the seconds , it only supports time in HH:mm
I could not find an exact reason as to why they don't support a time pattern.
Maybe somebody will be able to throw light on this issue
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently because their Time pop-up doesn't support seconds. I think they were targeting things like appointment calendars, where hours and minutes are sufficient.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!