<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calendars in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149100#M104115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it is possible.. Default alfresco DatePicker component is generated by org.alfresco.web.bean.generator.DatePickerGenerator and DateTimePickerGenerator depending on the type of property. You have two options, you wil either edit above two classes in order to instantiate your calendar component or you can write new Component Generator and register it under the same bean name as default component generators.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second thing (or maybe it should be first) is to decide which calendar component to use for date input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 13:43:11 GMT</pubDate>
    <dc:creator>dhalupa</dc:creator>
    <dc:date>2008-02-07T13:43:11Z</dc:date>
    <item>
      <title>Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149099#M104114</link>
      <description>Hi!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!</description>
      <pubDate>Thu, 07 Feb 2008 11:32:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149099#M104114</guid>
      <dc:creator>indsev</dc:creator>
      <dc:date>2008-02-07T11:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149100#M104115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it is possible.. Default alfresco DatePicker component is generated by org.alfresco.web.bean.generator.DatePickerGenerator and DateTimePickerGenerator depending on the type of property. You have two options, you wil either edit above two classes in order to instantiate your calendar component or you can write new Component Generator and register it under the same bean name as default component generators.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second thing (or maybe it should be first) is to decide which calendar component to use for date input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 13:43:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149100#M104115</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-07T13:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149101#M104116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your answer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 14:26:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149101#M104116</guid>
      <dc:creator>indsev</dc:creator>
      <dc:date>2008-02-07T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149102#M104117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to change method generate(FacesContext context, String id). By default, this method instantiates UIInput component, sets DatePicker renderer, and performs some initialization. You will have to replace this code with instantiation and initialization of your custom date component.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 14:40:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149102#M104117</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-07T14:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149103#M104118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 16:53:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149103#M104118</guid>
      <dc:creator>indsev</dc:creator>
      <dc:date>2008-02-07T16:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149104#M104119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;google "richfaces" &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 17:13:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149104#M104119</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-07T17:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149105#M104120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've redefined the method "generate" as you said:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public UIComponent generate(FacesContext context, String id)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;HtmlCalendar component = new HtmlCalendar();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; component.setRendererType("org.richfaces.CalendarRenderer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FacesHelper.setupComponentId(context, component, id);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; component.getAttributes().put("startYear", Integer.valueOf(startYear));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; component.getAttributes().put("yearCount", Integer.valueOf(yearCount));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; component.getAttributes().put("initialiseIfNull", new Boolean(initialiseIfNull));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; component.getAttributes().put("style", "margin-right: 7px;");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(noneLabel != null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; component.getAttributes().put("noneLabel", noneLabel);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return component;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, I've disabled mootools. However, calendars don't appear. Dates are still shown in the same way. What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 11:15:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149105#M104120</guid>
      <dc:creator>indsev</dc:creator>
      <dc:date>2008-02-08T11:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149106#M104121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 08:50:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149106#M104121</guid>
      <dc:creator>indsev</dc:creator>
      <dc:date>2008-02-11T08:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149107#M104122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Advanced search screen does not use ComponentGenerators to generate components but components are rather hardcoded within jsp. Check Web-Client/source/web/jsp/search/advanced-search.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 10:29:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149107#M104122</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-11T10:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149108#M104123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, the problem is that my Advanced-search works like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to make them work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 10:42:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149108#M104123</guid>
      <dc:creator>indsev</dc:creator>
      <dc:date>2008-02-11T10:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149109#M104124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You really made me confused &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you had the knowledge to make your Advanced search interface dynamic, than you should know how you instantiated your components and how to instantiate some other components instead of default ones.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 10:58:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149109#M104124</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-11T10:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149110#M104125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dhalupa, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me once again? &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to make calendars work, but only if type is date. If type is datetime, I get the following error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.error.AlfrescoRuntimeException: Failed to parse date 14/02/2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.NumberFormatException: For input string: "14/0"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've changed DateTimePickerGenerator in the same way as DateTimePicker, but only dates work (and not datetimes). Any idea? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 17:02:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149110#M104125</guid>
      <dc:creator>indsev</dc:creator>
      <dc:date>2008-02-14T17:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149111#M104126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I can not possibly know what you have changed in your code. Try setting up debugger and stepping through the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 18:15:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149111#M104126</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-02-14T18:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calendars</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149112#M104127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Advanced search screen does not use ComponentGenerators to generate components but components are rather hardcoded within jsp. Check Web-Client/source/web/jsp/search/advanced-search.jsp, If you could give me an example about this I would be really really grateful. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_________________&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.thetimefactory.com/collections/all/flavia" rel="nofollow noopener noreferrer"&gt;flavia calendars&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 11:30:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/calendars/m-p/149112#M104127</guid>
      <dc:creator>joshuafrfld701</dc:creator>
      <dc:date>2009-11-03T11:30:17Z</dc:date>
    </item>
  </channel>
</rss>

