Hi,

I'm trying to handle mouse click events over schedule entries in t:schedule 
Tomahawk component. In the page definition I have:

<t:schedule value="#{allEvents.model}" id="myEvents"
  rendered="true" readonly="false"
  theme="#{allEvents.theme}" tooltip="true"
  mouseListener="#{allEvents.clicked}"
  entryRenderer="#{allEvents.renderer}"
  headerDateFormat="#{allEvents.headerDateFormat}"
  expandToFitEntries="true"
  splitWeekend="false"
/>

and the method is defined as:

    public String clicked( ScheduleMouseEvent event )
    {
        switch( event.getEventType() )
…

Originally, method "clicked" was void, but I changed this to returning String, 
after looking at the source code of the ScheduleTagHandler class, 
"createMetaRuleset" method.

However, in either case, it doesn't work. "clicked" method never gets invoked, 
and in logs I can't find anything that would indicate if something was wrong.

I was using MyFaces JSF 2.0, then upgraded to JSF 2.1 - no change. t:schedule 
component works in every aspect (i.e. displaying entries, asking for new 
entries when the model changes selectedDate etc etc) EXCEPT for capturing mouse 
clicks.

I remember long ago when I first used this class, capturing events worked, 
however, I didn't need it. Now I need it, but it doesn't work. I'm using 
facelets - mentioning this because I saw some people had problems making this 
work with facelets, but those problems seem to be restricted to several years 
ago, before facelets got integrated with MyFaces.

Any ideas what's wrong here?

Regards,
Milan 

Reply via email to