You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ldr <ch...@niro-it.dk> on 2006/07/04 22:27:56 UTC
RE: Tomahawk Schedule WORKWEEK Problem
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.
Re: Tomahawk Schedule WORKWEEK Problem
Posted by Jurgen Lust <ju...@gmail.com>.
You should do a model.refresh() after you call model.setMode().
Jurgen
2006/7/4, ldr <ch...@niro-it.dk>:
>
>
> 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.
>
>