How can I set rich:calendar to return the current time along with the date I selected ?

Solution Unverified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content