-
1. Re: Problem adding UICalendar programmatically
ilya_shaikovsky Sep 24, 2011 4:39 PM (in response to ozorin)Correct renderer type to correct one and it will work
"org.richfaces.CalendarRenderer"
-
2. Re: Problem adding UICalendar programmatically
ozorin Sep 26, 2011 4:19 AM (in response to ilya_shaikovsky)Thanks, You're right.
-
3. Re: Problem adding UICalendar programmatically
ozorin Oct 3, 2011 10:59 AM (in response to ilya_shaikovsky)Hmm,
when the page is reloaded or re-request it (session bean), not all libraries are added to the page.
With which it may be the reason?
(this problem directly with renderer the UITabPanel class, but I think that with any class that would be true because of what I ask in this thread)
-
4. Re: Problem adding UICalendar programmatically
campos Oct 3, 2011 2:52 PM (in response to ozorin)Hello Oleg!
My code is for richfaces 3.3.3. I don't know if will work as well in richfaces 4 but worth a try!
I do not use UICalendar, instead I use HtmlCalendar
HtmlCalendar inText = new HtmlCalendar();
inText.setRendererType("org.richfaces.CalendarRenderer");
inText.setId(grp.getNome());
inText.setDatePattern("dd/MM/yyyy"); //your pattern
inText.setStyleClass("calendar"); //your styleclass
inText.setInputSize(11);
inText.setEnableManualInput(false); //your choice
inText.setRequired( true ); //your choice
inText.setRequiredMessage("some message");
-
5. Re: Problem adding UICalendar programmatically
ozorin Oct 4, 2011 2:22 AM (in response to campos)Hi Jorge!
Richfaces 4 has no subclasses HtmlCalendar, on this I use the class UICalendar...