This content has been marked as final.
Show 5 replies
-
-
2. Re: Organizer out of Calendar
shimonl97 Mar 14, 2008 11:24 AM (in response to mario.balaban)It asks for password
-
3. Re: Organizer out of Calendar
nbelaevski Mar 14, 2008 8:51 PM (in response to mario.balaban)Right! Please excuse me, here is the public link: http://anonsvn.jboss.org/repos/richfaces/trunk/ui/calendar/design/funcspec/FuncSpec%20-%20RF%20Calendar%20Component.doc
-
4. Re: Organizer out of Calendar
mario.balaban Mar 17, 2008 10:13 AM (in response to mario.balaban)Spasibo! Thank you very much, that was really useful.
I implemented the CalendarDataModel and CalendarDataModelItem interfaces. Then i set the component's dataModel attribute to the bean that implements CalendarDataModel and after that all you have to do is to put something like<h:outputText value="{data}"> </h:outputText> <br />
before closing the richcalendar tag and after the<h:outputText value="{day}"></h:outputText>
Don't ask me how I figured out that the value between the {} should be "data". It is not clear what is a JSON-serialazable object, but anyway I was able to put some sort of dayCell content by returning a string with html like:"event1<br/>event2<br/>"
(as returned value of the getData() method of CalendarDataModelItem implementation).
Is there a better method then returning the string with html like I did for doing that?
How to use the Object returned by the CalendarDataModelItem.getData inside a custom facet?
Thanks again. -
5. Re: Organizer out of Calendar
ilya_shaikovsky Mar 17, 2008 11:47 AM (in response to mario.balaban)chech please developers sample which located at trunk/samples SVN folder of the project. One of the calendars uses dataModel here.