ADF Calendar Component

Hi!
Do you guys have some code you can share in order to initialize (like adding activities on page load, something simple) an af:calendar from a managed bean? not using bindings or VO
I downloaded the adffacesdemo war but there are way too many classes and is really difficult just to add one activity and test the component
is there an easier way?
I use Jdev 11.1.2.3.0 and Jdev 12c
thanks

Well, there isn't much about the calendar component. My be ADF Faces Calendar Component is of help. Or http://www.gebs.ro/blog/oracle/oracle-adf-calendar-step-by-step-implementation/
Timo

Similar Messages

  • Clicking on 'ADF Calendar Component activity' should navigate to New page

    Jdeveloper Version - 11.1.2.0.0
    We implemented the ADF calendar component and it displays fine. However, we have a requirement that by clicking on the activity, it should navigate to another new page. For an activity, there are options like contextMenu, acitivtyHover, activityDetail etc.., where all shows the details in popup of the same page. We want to navigate to new page by clicking on the activity. Is it possible?
    Thanks in Advance.

    Hi,
    I don't think it is possible.
    All the facets you mentioned support only af:popup as child to them.
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_calendar.html
    -Arun

  • Oracle ADF Calendar Component Customization

    Hi,
    I am starting my journey to learn ADF. I am using Oracle ADF Calendar component as read only calendar. We need to further customize the calender to incorporate CUD operations. I am using ADF BC @ business layer and which in turns talk to DB for Calendar entries.
    I am able to implement UI facets (like Hover effect, Detail Calendar Entry, Delete Entry) but I am not clear about how to implement the corresponding events (like delete event, edit event etc).
    I am using Dialog and which refers to a managed Bean component for listeners (e.g Delete Dialog refers to dialogListener="#{CustomCalendarBean.deleteListener}").
    My Question is,
    In the bean, to implement the listener, i would need to make use of Delete operation available in my Data Control (Exposed by ADF BC VO). I am not sure how to do the same. My managed bean is POJO and not sure how it can call Delete operation available in data control.
    Appreciate your help.
    Thanks, Mihir Parekh

    I am able to achieve this functionality with Operation Binding.

  • Unable to view data in ADF calendar.

    Hi,
    I am working on an adf application that uses the ADF calendar component. I have created view object(with Entity Object) and have dragged and dropped the associated component from the data controls as an adf calendar on a jsf page. But 'm unable to run this application. The following exceptions occurs :
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarActivity.getStartDate(FacesCtrlCalendarBinding.java:1041)
         at oracle.adf.view.rich.model.CalendarModel.isActivityInRange(CalendarModel.java:189)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarModel._createCalendarActivities(FacesCtrlCalendarBinding.java:793)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarModel._getActvitiesListMap(FacesCtrlCalendarBinding.java:750)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarModel.getTimeActivities(FacesCtrlCalendarBinding.java:500)
         at oracle.adfinternal.view.faces.renderkit.rich.CalendarListRenderer.encodeAll(CalendarListRenderer.java:152)
         at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:1731)
         at oracle.adfinternal.view.faces.renderkit.rich.CalendarRenderer.encodeAll(CalendarRenderer.java:439)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:606)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:447)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$1500(PanelGroupLayoutRenderer.java:30)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:734)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:637)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:360)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:606)
    What I understand is that the activity or timezone is not setting properly. However, I'm not able to figure out which is incorrect?
    Earlier it worked fine when an other view is used. Based on our requirements, I changed the view definition and few mappings. Now it is throwing this error.
    Please help me.

    Arun,
    Thanks for the response.
    The Jdev version is 11.1.2.0.0.
    Regarding the VO's, both are different VO's. The first VO(which worked fine) is a simple query and is based on EO.
    My Second VO (Based on a database view) is not based on EO. is it mandatory that the VO should be Enity based?
    However, in my pageDefinition file, I had all bindings as:
    <action IterBinding="JtfTasksCal1Iterator" id="ExecuteWithParams" RequiresUpdateModel="true"
    Action="executeWithParams">
    <NamedData NDName="startDate" NDValue="#{bindings.JtfTasksCal1.startDate}" NDType="java.sql.Timestamp"/>
    <NamedData NDName="endDate" NDValue="#{bindings.JtfTasksCal1.endDate}" NDType="java.sql.Timestamp"/>
    <NamedData NDName="tz" NDValue="#{bindings.JtfTasksCal1.timeZoneId}" NDType="java.lang.String"/>
    </action>
    <calendar IterBinding="JtfTasksCal1Iterator" id="JtfTasksCal1" xmlns="http://xmlns.oracle.com/adf/faces/binding"
    ActionBindingName="ExecuteWithParams">
    <nodeDefinition DefName="oper.model.uiview.JtfTasksCalVO">
    <AttrNames>
    <Item Type="id" Value="TaskNumber"/>
    <Item Type="providerId" Value="TaskStatus"/>
    <Item Type="title" Value="TaskName"/>
    <Item Type="startTime" Value="ScheduledStartDate"/>
    <Item Type="endTime" Value="ScheduledEndDate"/>
    <Item Type="tags" Value="TaskStatus"/>
    <Item Type="custom" Value="ScheduledEndDate"/>
    <Item Type="custom" Value="ScheduledStartDate"/>
    <Item Type="custom" Value="TaskId"/>
    <Item Type="custom" Value="TaskName"/>
    <Item Type="custom" Value="TaskNumber"/>
    <Item Type="custom" Value="TaskStatus"/>
    <Item Type="custom" Value="TaskType"/>
    </AttrNames>
    </nodeDefinition>
    <providerDefinition IterBindingName="JtfTasksCal1Iterator">
    <AttrNames>
    <Item Type="id" Value="TaskStatus"/>
    <Item Type="displayName" Value="TaskName"/>
    </AttrNames>
    </providerDefinition>
    </calendar>
    Is there anything missed here?
    And there is no Timezone specified in trinidad-config.xml. If the timezone is not specified here, then how it picksup the timezone?

  • ADF Calendar : scroll bar in specific date

    Dear all,
    By default, the ADF calendar component displays many events found in a specif day as "+2 more", "+3 more" or "+X more" . . . . and as we click on the link, we view them in the day view.
    Is there any way to display all the events under the same day and view them by using a scroll-bar found inside the day square space? I need to view all events without going to the day view
    I need to view all events found on a specific day to be able to drag and drop it to any day directly on the Month view
    Thanks in advance

    Hi,
    You could use the following to get scroll bars around your table. It may not be ideal as the scroll bar is for the entire table, so when you scroll your headers will also scroll.
    You will need to hard code your height, and set some margin for vertical scroll bar in IE (thats why the 98% width!). But atleast its better than nothing..
    <af:table width="98%" id="xx" ...
    inlineStyle="overflow-x: hidden; overflow-y: auto;height: 450px;"
    rows="15">
    </af:table>
    HTH
    Jaimon

  • How to change ADF Calendar colors from different providers?

    Hello again, I am using JDeveloper 11.1.2.3.0,
    This might be the third question I am asking here about this and till now I got no answers.
    CAN ANYONE PLEASE PROVIDE AN EXAMPLE OR A TUTORIAL ON HOW TO CHANGE THE COLORS OF THE ADF CALENDAR COMPONENT?
    Excuse me for asking again but I am finding it very wired that nobody doesn't respond to these questions. Is there a bug or nobody really knows how to customize the calendar component?

    Thanks for the time you take to explain me,
    But, I'm no sur to understand all that you say.
    My VO have :: Name : Calendar
    Attribute
    Type
    idCalendar
    varchar2(20)
    provider
    varchar2(40)
    startDate
    oracle.jbo.domain.date
    endDate
    oracle.jbo.domain.date
    title
    varchar2(255)
    Question :
    1) The tags fields is mandatory or not for the activityStyles ? If Yes, how to define it ?
    I would be very obliged if you would send me a sample project. I'am lost and more i try more i don't understant.
    Thanks

  • Using ADF calendar to show employee absences

    Hi,
    (Actually this question belongs to ADF as well as HRMS..so posting in both the forums)
    We are having JDeveloper 11.1.2.4
    We need to show employee absence calendar in ADF page.
    Question 1) We believe we can use ADF Calendar component for this. Kindly confirm.
    I gone through "How to Use the ADF Faces Calendar" section in ADF Guide and tried to implement Employee Absence Calendar accordingly (based on seeded oracle table - PER_ABSENCE_ATTENDANCES.)
    However step 2 mentions creating 3 named bind variables in VO:
    A string that represents the time zone
    A date that represents the start time for the current date range shown on the calendar.
    A date that represents the end time for the current date range shown on the calendar.
    I created these 3 named bind parameters accordingly. However when I run the page with ADF calendar, it shows following error:
    Attempt to set a parameter name that does not occur in the SQL: timeZone
    Question 2) How to resolve this error?
    Kindly advise.
    Thanks,
    Vivek

    Hi minh-hieu,
    According to your description, you want to calculate YTD value of Sales Amount. Right?
    As we tested in our environment, the expression you assign in This function is correct. It can return the YTD values properly:
    So please pay attention to the set expression in your SCOPE statement. Try the code below:
    SCOPE(MEASURES.[YTD Sales]); --Calendar YTD
    SCOPE([DimDates].[Year].[Year].MEMBERS,[DimDates].[Year-Qtr-Month-Day].MEMBERS);
    THIS = AGGREGATE( PERIODSTODATE([Date].[Year].[Year], [Date].[Year].CURRENTMEMBER), [Measures].[Sales Amount]);
    END SCOPE;
    END SCOPE;
    Best Regards,
    Simon Hou
    TechNet Community Support

  • How to configure the date format in toolbar of ADF Calendar

    Hi,
    In the weekly view of the ADF Calendar, the date on the toolbar of the calendar component is something like this "May 1,2011 - May 7,2011".
    Is there a way to configure this. What changes need to be done to show this as "1 May 2011 - 7 May 2011".
    Thanks,
    Deepak

    See Bug 13825615 - backport to 11.1.1.7.0 bug 13045234 - date format not supported in toolbar by ca

  • ADF calendar date cell  background color change

    Hi,
    I am new to jdeveloper / ADF.
    I coded per the below calender sample in my jdeveloper and it runs fine.
    http://www.oracle.com/technetwork/developer-tools/jdev/calendar-091799.html
    The current date cell shows in yellow color background. How/where can I change that color.
    Also the small calendar look up for the start/end date-time setting allows the user set the start/end time upto HH/MIN/seconds. How can I remove the seconds
    Thanks for all your help.

    You can create a new skin for your application and use the following selector which we deliver..
    .AFCalendarTodayBackground:alias
    background-color: blue;
    ALternatively, you can use the specific selector
    af|calendar af|calendar::day-of-week:today {
    background-color: blue;
    You can also see other ways of customizing your look and feel of the calendar component by referencing the hosted demo for skinning the calendar component.
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/calendar.jspx

  • ADF: Calendar

    Hi all,
    I'm using JDev 11.1.2.0 and I'm having a couple of question concerning calendar component.
    1) Is there any way to present an event as an all-day event?
    Even when the returned VO record has only date (dd/mm/yyyy - NO time at all), it still shows by default 12:00am before the event
    2) Regardless of the above issue, can I hide time for all events?
    BR
    Apostolos

    Hi,
    Welcome to OTN. Always mention your JDev version (Check out this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56)
    Check this out : http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/calendar.jspx
    af|calendar::month-grid-cell:active-day is what you would need to skin.
    -Arun

  • ADF calendar styling

    Hi
    I am very new to ADF , I was trying to use styling for af:calendar component , but I could not find any sample code on the web , I tried using the instructions in the link but I was not succesfull
    http://www.art2dec.com/documentation/docs/fmw11g1114documentation/web.1111/b31973/af_calendar.htm#CHDIFFGG , Can anyone please share a sample code or a tutorial link
    I tried some sample code but getting a cast exception
    public class CalBean {
    private Set<String> tags;
    public Set<String> getTags() {
    return tags;
    public CalBean() {
    super();
    HashMap<Set, InstanceStyles> activityColorMap = new HashMap<Set, InstanceStyles>();
    Set set1 = new HashSet<String>();
    set1.add("101");
    activityColorMap.put(set1, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.ORANGE));
    tags=set1;
    Thanks
    Gyanesh

    Hi..
    Hope you may helpful
    ADF RC CALENDAR ACTIVITY STYLE-Suresh

  • ADF Calendar Issue with MDS

    JDeveloper 11.1.1.4.0
    With the ADF Calendar, I able to programmatically control most of its features such as setting ActiveDay, View, etc.
    But, when I turn MDS on and I interact directly in the calendar (such as changing the views, or clicking on the day which switches the view), any programmatic control I do to it just stops refreshing the calendar.
    I inspected it and data is there, data shows up, activeDay is changed... But the calendar itself just doesn't change its view to the new activeDay.
    Eg. I'm viewing March and I changed the active day to somewhere in August, I will still end up viewing March. No refresh nor flicker.
    This issue is only happening when MDS is turned on.
    I wonder if anyone has got around this issue?
    -Marvin

    Hi Marvin
    I have a issue with Calendar component in ADF , I have similar requirement as you , I want to change the display month of Calendar on selecting the Month for Ex I select May I shud get May's Calendar and if March is selected I want to display March Calendar , I wanted to know how did you implement this ?
    I am trying to set the activeDay of RichCalendar on selection of Month and year , For example I select May 2011, Then in value Change Listener I pass the 01 May 2011 as Date to a method and trying to set the activeDay attribute of RichCalendar so that the Calendar will display the calendar for Month of May with 1st May as active Day. Now I have two questions is such a thing possible using
    below method, setActiveDayCompInstance()
    Second I am getting null pointer exception for the line , why so ??
    reqContext.getChangeManager().addComponentChange(context, calendar, aa);
    My Method for setting active Day
    public void setActiveDayCompInstance(Date activeDay)
    System.out.println(activeDay);
    RichCalendar calendar = getCalendarComponent();
    calendar.setActiveDay(activeDay);
    // Implicitly record a change for 'activeDay' attribute
    AttributeComponentChange aa =
    new AttributeComponentChange(RichCalendar.ACTIVE_DAY_KEY.getName(), activeDay);
    RequestContext reqContext = RequestContext.getCurrentInstance();
    FacesContext context = FacesContext.getCurrentInstance();
    System.out.println("reqContext"+aa +reqContext.getChangeManager());
    reqContext.getChangeManager().addComponentChange(context, calendar, aa); // Null Pointer exception
    Stack Trace for Null pointer
    at org.apache.myfaces.trinidad.change.BaseChangeManager.addComponentChange(BaseChangeManager.java:58)
    at org.apache.myfaces.trinidad.change.SessionChangeManager.addComponentChange(SessionChangeManager.java:64)
    at MyNest.Timesheet.calendar.TimesheetCalendarBean.setActiveDayCompInstance(TimesheetCalendarBean.java:1482)
    at MyNest.Timesheet.calendar.TimesheetCalendarBean.yearChangeListener(TimesheetCalendarBean.java:1196)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

  • ADF: Calendar - hide time

    Hello everyone!
    I'm using Jdev 11.1.2.0.
    I have a calendar component in a form and there is a business need to display all events as all-day-events.
    So, I'm looking for a way to hide time. Do you have any idea how to do this?
    Thanks a lot!
    Apostolos

    there is a propert called 'view' can u set that to 'list' to see day event. chk
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_calendar.html
    also chk
    http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx;jsessionid=sn8QTyFDjrpRCRnSJyKK1J4My1TLHxddwmvy3RGSdJDc93bSFxh5!1678445533?gallery=true&_afrLoop=3777601612323497&_afrWindowMode=2&Adf-Window-Id=w0#%2Fcomponents%2Fcalendar.jspx%40%3FAdf-Window-Id%3Dw0

  • Customizing the calendar component

    hi,
    I am using jdev 11.1.2.0
    In calendar component when in the list mode. we are having one button name "Today" and along with date range. My requirment is to display today date when clicking of today button in list mode.
    Is it possible.How can i customize the the toolbar.
    Any help would appreciated.

    Hi,
    Check this out: http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/calendar.jspx
    AP

  • Calendar component: I am a bit confused on the bean to use

    Hi all,
    I would like to use the calendar component.
    I have just read http://www.oracle.com/technology/products/jdev/11/how-tos/calendar/calendar.htm , http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_adv.htm#CHDIFFGA (paragraph 27.5) , the chapter 15 of the user interface developer's guide and I have seen the adf demo.
    I am a bit confused on the classes to use to manage the calendar. I can't find the class calendar model described on the manual and other links, while the adf demo uses a lot of classes: DemoCalendarActivityBean, DemoCalendarBean, DemoCalendarModelBean, DemoDateCustomerBean, DemoCalendarActivity, DemoCalendarModelWrapper, DemoCalendarProvider, DemoSingleProviderCalendarModel.
    First of all, I don't understand all the functionality of these classe, but the most important is that I don't understand the difference between DemoCalendarModelBean and DemoCalendarModelBean.
    If I define a table in my database, like described on the links/manual, what classes do I need?
    Thanks
    Andrea

    User,
    OK, now I'm completely, utterly, and totally confused.
    The sample application workspace that I downloaded from the how-to link you provided has a CalendarBean class, which is simply a managed bean. I don't see either DemoCalendarBean nor DemoCalendarModelBean. If you are using ADF Business Components as your model layer, you don't need to muck about creating calendar models. As the how-to says:
    An ADF Faces Calendar component must be bound to a CalendarModel class. This class can be created for you when you use ADF Business Components to manage your calendar's data. For example, say you have data in your data store that represents the details of an activity, such as the date, time, title, location, and owner. When you create an entity object to represent that data, and then a view object to display the data, you can drag and drop the associated collection from the Data Controls panel to create the calendar. JDeveloper will declaratively create the model and bind the view to that model so that the correct data will display when the calendar is launched. The [url http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_calendar.htm]web user interface developers guide secton on creating a calendar is pretty clear on all of the classes you have to create if you are not using ADF BC.
    John

Maybe you are looking for