Mitkees & Webcenter

Into the charm of Oracle Webcenter and ADF

Getting selected time in ADF calendar

It took me about 6 hrs to know how ADF calendar component set the time in the popup form the project posted here.

But it didn’t satisfy the implementation needs as it passes the time automatically through the calendarModel behind the scene,after some investigations , i found that there are some events associated with the calendar that can helps.

I used the Calendar event  listener property and created a method that takes CalendarEvent as a parameter and used the CalendarEvent object to get the triggered time as below.



    public void calEvent(CalendarEvent ce){

    <af:calendar value="#{bindings.CalendarView1.calendarModel}" id="c1" availableViews="all"
                         view="month" startDayOfWeek="mon" startHour="9"


2 responses to “Getting selected time in ADF calendar

  1. dinan adi October 18, 2016 at 3:06 pm

    how if i want to declare selected date on popup calendar?…

  2. Mohamed Mitkees October 18, 2016 at 3:53 pm

    on the popup calendar it is always selected to the current value of the input date ; just change the value

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: