aspose file tools
The moose likes JSF and the fly likes RichFaces Calendar Control Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "RichFaces Calendar Control" Watch "RichFaces Calendar Control" New topic
Author

RichFaces Calendar Control

Craig Corlett
Greenhorn

Joined: Nov 13, 2009
Posts: 1
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

Joined: Sep 21, 2008
Posts: 177
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14572
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: RichFaces Calendar Control
 
Similar Threads
rich:calendar bug
Problems with rich:calendar
Create a calendar with HTMLPanelGrid
help with apache 2.0.40 + mod_ssl unknown protocol error
JSF with RichFaces Calendar