-
1. rich calendar header customization
mp911de Feb 5, 2011 4:27 PM (in response to narvava)Hi Naresh,
you can customize the Header with Facets. See http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_calendar.html
Best regards,
Mark
-
2. Re: rich calendar header customization
boy18nj Feb 5, 2011 4:33 PM (in response to mp911de)If you are talking about to change the calendar date and months dynamically, how about calling the getters/setters of rich calendar component bean.
-
3. Re: rich calendar header customization
mp911de Feb 5, 2011 4:52 PM (in response to boy18nj)you can use the JavaScript API. Calling direct Getters/Setters of the Component seems possible, but is a kind of bad design...Do it via your bean
-
4. Re: rich calendar header customization
narvava Feb 5, 2011 9:37 PM (in response to mp911de)hi Mark,
Thanks for your reply. I am trying to do something like this and call the following method code in valueChangeListener of the calendar component but with no success.
FacesContext facesContext = FacesContext.getCurrentInstance();
UIViewRoot uiViewRoot = facesContext.getViewRoot();
HtmlCalendar sdlFromDate = (HtmlCalendar)uiViewRoot.findComponent("oncallSchedule:txtFromDate");
HtmlCalendar sdlToDate = (HtmlCalendar)uiViewRoot.findComponent("oncallSchedule:txtToDate");
sdlFromDate.setPreloadDateRangeBegin(fromDate);
sdlFromDate.setPreloadDateRangeEnd(toDate);
sdlToDate.setPreloadDateRangeBegin(fromDate);
sdlToDate.setPreloadDateRangeEnd(toDate);
Could you please eloborate your suggestion and post any sample code if possible?.
Regards,
Naresh.
-
5. rich calendar header customization
nbelaevski Feb 6, 2011 6:59 AM (in response to narvava)Naresh,
There is currentDate attribute that indicates month currently selected, you can change it. BTW, are you re-rendering calendar after attributes changes?