Re: Scheduler: Getting Clicked Entry

2006-09-20 Thread Julian Ray
Ok, so I resolved this issue. When clicking on a schedule item the scheduler saves the selected state (i.e. which schedule entry was clicked) into the schedule model then submits the form. My problem was the model was in request scope and the state is lost between requests so when the form is pos

Re: Scheduler: Getting Clicked Entry

2006-09-20 Thread Jurgen Lust
Well, I checked by simply adding some debugging to the action method: Just calling log.info("Selected Entry: " + getModel().getSelectedEntry()) in the action method printed the correct entry... I committed the changes, please check out the latest sources and take a look at the log file... Jurgen

Re: Scheduler: Getting Clicked Entry

2006-09-20 Thread Julian Ray
Hi Jurgen, I'm back on this and still have not found a resolution. Looking at the code, example 5 does not return the selected entry but simply identifies that an entry was clicked in the mouse listener and the action method simply returns "success". Am I missing something here? Has anybody el

Re: Scheduler: Getting Clicked Entry

2006-09-13 Thread Jurgen Lust
Have you checked schedule example 5? In that example, the getModel().getSelectedEntry() returns the correct entry when called from the action method. Are you using Facelets? Jurgen Op ma, 11-09-2006 te 09:15 -0700, schreef Julian Ray: > Does anyone have any ideas on this? I've been pulling my ha

Re: Scheduler: Getting Clicked Entry

2006-09-11 Thread Julian Ray
Does anyone have any ideas on this? I've been pulling my hair out over it for two days now :) Thanks Julian Julian Ray wrote: > > I'm having problems getting the clicked entry from the scheduler. The > ScheduleMouseEvent is set to SCHEDULE_ENTRY_CLICKED but in the mouse > listener event and th

Scheduler: Getting Clicked Entry

2006-09-10 Thread Julian Ray
I'm having problems getting the clicked entry from the scheduler. The ScheduleMouseEvent is set to SCHEDULE_ENTRY_CLICKED but in the mouse listener event and the action event the getModel().getSelectedEntry() is always null and isEntrySelected() always returns false. Have I missed something? Do