Tuesday, May 6, 2014

Custom Toolbar to ADF Calendar Object

ADF Calendar is a declarative component provide by Oracle to implement the Calendar functionality in ADF Faces. As it is declarative component, users may not like / need some of the out of the box functionality that comes built in with ADF Calendar object. However, Oracle provides lot of ways to customize the behavior to your requirement.

In this post, I will be talking about adding a custom toolbar to the ADF Calendar objects. It is pretty simple and straightforward, below are the steps:
1. Add a facet (f:facet) under af:calendar. Oracle recommends to use a name that starts with custom.... for the facet name (example "customToolbar").
2. Add toolbar under the facet (you can add button's text fields etc under the toolbar)
3. In the calendar's toolboxLayout property select the custom facet name that you added above (in point 1).

This is how we achieve using custom toolbar for the calendar object. I have included the link to the oracle documentation for this functionality below:

The above document explains pretty much everything with regards to customizing the toolbar in adf calendar.

No comments:

Post a Comment