How can I set rich:calendar to return the current time along with the date I selected ?
Issue
I'm creating a page where I use a <rich:calendar> component to select a date. What I need to do is when selecting a date it returns the date I selected along with the current time, but when I select it only returns 12:00. Here is my <rich:calendar> configuration:
<h:calendar
popup="true"
rendered="#{!aBean.aCalendar}"
value="#{aBean.aDate}"
id="c"
datePattern="dd/MM/yyyy HH:mm" />
How can I accomplish that?
Environment
-
JBoss Enterprise Application Platform all versions
-
JBoss Web Framework Kit all versions
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
