cancel
Showing results for 
Search instead for 
Did you mean: 

Using inputCalendar from myfaces

bgl
Champ on-the-rise
Champ on-the-rise
Hi,

I would like to use the inputCalendar from tomahawk 1.1.6 (see http://myfaces.apache.org/tomahawk/calendar.html).

I can use it if it is not displayed as a pop-up (screenshot on the right in previous url). But when I try to have it as a popup (there is a button, you click on it and a popup appears with a calendar which is very easy to use see http://www.irian.at/myfaces/calendar.jsf for a demo).

After configuring the web.xml to add the extensionfilter as explained in myfaces FAQ, I still have an error (seen using firebug):


Event.observe is not a function
init(span#dialog:dialog-body:date-depart-souhaiteeSpan)popcalendar.js (line 222)
[Break on this error] }.bind(this), false);

This error is raised when the page is loaded. As you can guess, no popup is shown when the button is clicked…

Did someone already met this problem ? I googled about this and it seems to be related to some loading order in the javascript…but I found no more.

Did Alfresco team test this component ? (I'm sure you did in fact Smiley Wink) it is, in my mind, much more user friendly than the current date selection component but may be it is incompatible with current alfresco code.

Any hint about this ?

Thx

Boris
2 REPLIES 2

dhalupa
Champ on-the-rise
Champ on-the-rise
To make it work, you have to remove reference to a Mootools library which is put on every page by rSmiley Tongueage tag. The problem is that tomahawk is using prototype js library which does not work well with mootools. When you remove this reference ajax preview of content will no longer work. Those funny new ajax dashlets are also using mootools but they will continue working since, it seems that reference to mootools is injected as part of webscript component. I'm not sure about details, did not play with it too much.

robbiefpi
Champ in-the-making
Champ in-the-making
Good experiment and good idea bgl..
Have you good news to incorporate this component in alfresco dashboard?

It is said that there is a team calendar amp for alfresco but I can't find it

Please give me any update of your work.

thanks
Rob