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
[EMAIL PROTECTED]
Sinesy srl - Gruppo Tecnoinformatica
Via Comunale di Camino, 22/D - 31046 Oderzo (TV)
www.tinet.it
Servizio Clienti:
Tel. 199.117701 - Fax 0422.814481