myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Conte <luca.co...@tinet.it>
Subject Re: Tomahawk Schedule Cliked
Date Mon, 13 Aug 2007 06:52:22 GMT
ignicolist ha scritto:
> Hi, i have a month view from tomahawk Schedule, and i want that when the user
> clik in a day cell it will redirect to another page! Anyone know how to do
> that?
>
>
> Tks for all. 
>   
Yu can do something like this:
 if(event.getEventType()==ScheduleMouseEvent.SCHEDULE_ENTRY_CLICKED){
      HtmlSchedule schedule=(HtmlSchedule)event.getComponent();
      
getModel().setSelectedEntry(((HtmlSchedule)event.getComponent()).getSubmittedEntry());
      if (schedule.getAction() != null)
      {
        
FacesContext.getCurrentInstance().getApplication().getActionListener().processAction(new 
ActionEvent(schedule));
      }
}

Implementing and binding a mouse listener!



-- 
Luca Conte
IT Solutions
luca.conte@tinet.it  
 
Sinesy srl - Gruppo Tecnoinformatica
Via Comunale di Camino, 22/D - 31046 Oderzo (TV)
www.tinet.it 

Servizio Clienti:
Tel. 199.117701 - Fax 0422.814481



Mime
View raw message