You should do a model.refresh() after you call model.setMode().

Jurgen

2006/7/4, ldr <[EMAIL PROTECTED]>:

I have the same problem, when I switch between modes the number of dates
shown gets fucked up. Ex. when I start in MONTH mode and change to WORKWEEK
about 30 dates are shown. I would guess one has to change the range of dates
shown, but I havent figured it out yet.

Here is how I do now...

switch ((Integer)evt.getNewValue())
                {
                        case ScheduleModel.DAY :
                                 model.setMode(ScheduleModel.DAY);
                                break;
                        case ScheduleModel.WORKWEEK :
                                model.setMode(ScheduleModel.WORKWEEK);
                                break;
                        case ScheduleModel.WEEK :
                                model.setMode(ScheduleModel.WEEK);
                                break;
                        case ScheduleModel.MONTH :
                                model.setMode(ScheduleModel.MONTH);
                                break;
                        default :
                                model.setMode(ScheduleModel.MONTH);
                                break;

if any should have a solution to this problem it would help a lot, ldr
--
View this message in context: http://www.nabble.com/Tomahawk-Schedule-WORKWEEK-Problem-tf1748754.html#a5172758
Sent from the MyFaces - Users forum at Nabble.com.


Reply via email to