Calendars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2008 06:32 AM
I'd like to know if it's possible to change the way that dates in Alfresco are shown, I mean, is it possible to show a calendar? What classes do I have to change to make it possible?
It's really urgent.
Thank you very much!
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2008 08:43 AM
The second thing (or maybe it should be first) is to decide which calendar component to use for date input.
There are quite a few jsf open source component libraries which provide nice calendar components, I have tried Tomahawk and RichFaces and both of them perform nicely. Finally I have opted for RichFaces.
But there is a catch, both Tomahawk and RichFaces are using Prototype as javascript library which is not compatible with mootools used by alfresco, therefore to use these calendar components you have to turn mootools off. There are couple of threads about this topic on this forum, just search for mootools
kind regards,
Denis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2008 09:26 AM
I still have some doubts, how do I have to modify DatePickerGenerator to be able to show a Calendar? I mean, what methods do I have to change and how? If you could give me an example about this I would be really really grateful.
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2008 09:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2008 11:53 AM
Could you please tell me where can I get the components to use the calendar? Richfaces seems a good option, but in fact I don't really know where to find it and how to use it.
Thank you


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2008 12:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2008 06:15 AM
public UIComponent generate(FacesContext context, String id)
{
HtmlCalendar component = new HtmlCalendar();
component.setRendererType("org.richfaces.CalendarRenderer");
FacesHelper.setupComponentId(context, component, id);
component.getAttributes().put("startYear", Integer.valueOf(startYear));
component.getAttributes().put("yearCount", Integer.valueOf(yearCount));
component.getAttributes().put("initialiseIfNull", new Boolean(initialiseIfNull));
component.getAttributes().put("style", "margin-right: 7px;");
if(noneLabel != null)
{
component.getAttributes().put("noneLabel", noneLabel);
}
return component;
}
Then, I've disabled mootools. However, calendars don't appear. Dates are still shown in the same way. What am I missing?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2008 03:50 AM
I've realised that in fact it was working, except in the advanced-search, and that's where I need it. Does anybody knows why?
Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2008 05:29 AM
Kind regards,
Denis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2008 05:42 AM
When you select a content type (or a folder type), its attributes are shown, so that you can search by them (I had to modify some classes to make it worked). So, they are dinamically loaded, not included in the jsp.
Is there any way to make them work?
Thank you again.
