You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Ricardo R. Ramírez Valenzuela" <rr...@itesm.mx> on 2006/08/17 21:34:34 UTC

Schedule component in workweek mode

Hi

Quick question about workweek mode for the schedule component.

Currently, I can see monday through friday, is there a way to see monday
through saturday? I'd like to use the workweek mode, but I need saturday
to be displayed, any ideas?

- Ricardo

Re: Schedule component in workweek mode

Posted by Andrew Robinson <an...@gmail.com>.
(This is what I did in the 1.1.3 sandbox version -- it should apply to
newer versions, I think)

Extend AbstractScheduleModel
Return the start date in "getSelectedDate"
return WORKWEEK for the mode in getMode
in "updateDates(Date)", I just record the date in a calendar member variable
in loadEntries, loop through all the entries, and return anything that
is in the range of the parameters
I load all the entries in a method my constructor calls. For me this
was a read-only schedule

Hope that helps. As I was having to do this, I realized it would have
been very nice to have the built in schedules accept a date range
instead of always being hard-coded to a full day/workweek/week/month.

Do you want to update a JIRA to request this feature?

FYI -- if you get stuck, just look at the schedule code and copy what
the author did

On 8/17/06, Ricardo R. Ramírez Valenzuela <rr...@itesm.mx> wrote:
> Hi
>
> Quick question about workweek mode for the schedule component.
>
> Currently, I can see monday through friday, is there a way to see monday
> through saturday? I'd like to use the workweek mode, but I need saturday
> to be displayed, any ideas?
>
> - Ricardo
>
>
>