You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Holger Prause <h....@gmx.net> on 2006/11/02 05:52:14 UTC

scheduler and input calendar question

Hello,

i am planning to use the sheduler for my project (like at 
http://example.irian.at/example-simple-20061102/schedule2.jsf)

My question is : how can i mark the days that have a entry in the 
sheduler in the inputcalendar ?

Example: If i have an appointment on 3 january and 5th january in the 
sheduler, at the input calendar these days should be marked bold / red.
Do i have any chance to archieve it ? (without writing my own calendar)

Thank u very much,

Holger




Re: scheduler and input calendar question

Posted by Holger Prause <h....@gmx.net>.
Jurgen Lust schrieb:
> Hi,
>
> this is not something you can easily do with the schedule model, because
> that class only contains the entries for the currently displayed
> timespan in the schedule. When the schedule is in workweek mode for
> example, the model contains the entries for the 5 days in the selected
> week. Since the inputCalendar displays a whole month, that would be
> incomplete.
>
> Typically though, your implementation of the schedulemodel fetches the
> entries from a database or iCal file, so you could extend this
> implementation for use with the inputCalendar.
>
> Next problem would be the rendering of days with an appointment in
> bold/red. For that part I would have to look at the inputCalendar
> component, because I don't know it very well myself... I'll get back to
> you with this.
>
> Jurgen 
>
> Op donderdag 02-11-2006 om 05:52 uur [tijdzone +0100], schreef Holger
> Prause:
>   
>> Hello,
>>
>> i am planning to use the sheduler for my project (like at 
>> http://example.irian.at/example-simple-20061102/schedule2.jsf)
>>
>> My question is : how can i mark the days that have a entry in the 
>> sheduler in the inputcalendar ?
>>
>> Example: If i have an appointment on 3 january and 5th january in the 
>> sheduler, at the input calendar these days should be marked bold / red.
>> Do i have any chance to archieve it ? (without writing my own calendar)
>>
>> Thank u very much,
>>
>> Holger
>>
>>
>>
>>     
Thank your very much for your reply, seems like i got to do some 
customization (extending inputCalendar, recompiling, testing)
, if anyhow possible i would avoid this , its taking always so much time.

Ill see if i find time for this and post any solutions i found.













Re: scheduler and input calendar question

Posted by Yogesh Chaudhari <it...@gmail.com>.
Hi,

We would have similar requirement, we need to highlight schedule component
date section (like holiday)  with different background color based on the
entries of that particular date.

For example 5 th of month is say busy (show in red), 7th is partially busy
show in yellow and no event on particular day then we want to show that in
different color.

Can we have somthing like holiday with background color option?

model.setHoliday(new Date(rs.getDate("hodate").getTime()), rs.getString
("holiday"));

Thanks,
Yogesh


On 11/6/06, Jurgen Lust <Ju...@gmail.com> wrote:
>
> Hi,
>
> this is not something you can easily do with the schedule model, because
> that class only contains the entries for the currently displayed
> timespan in the schedule. When the schedule is in workweek mode for
> example, the model contains the entries for the 5 days in the selected
> week. Since the inputCalendar displays a whole month, that would be
> incomplete.
>
> Typically though, your implementation of the schedulemodel fetches the
> entries from a database or iCal file, so you could extend this
> implementation for use with the inputCalendar.
>
> Next problem would be the rendering of days with an appointment in
> bold/red. For that part I would have to look at the inputCalendar
> component, because I don't know it very well myself... I'll get back to
> you with this.
>
> Jurgen
>
> Op donderdag 02-11-2006 om 05:52 uur [tijdzone +0100], schreef Holger
> Prause:
> > Hello,
> >
> > i am planning to use the sheduler for my project (like at
> > http://example.irian.at/example-simple-20061102/schedule2.jsf)
> >
> > My question is : how can i mark the days that have a entry in the
> > sheduler in the inputcalendar ?
> >
> > Example: If i have an appointment on 3 january and 5th january in the
> > sheduler, at the input calendar these days should be marked bold / red.
> > Do i have any chance to archieve it ? (without writing my own calendar)
> >
> > Thank u very much,
> >
> > Holger
> >
> >
> >
> --
> ____________________________________________________
> Jurgen Lust
> email: jlust@apache.org
> blog: http://jroller.com/page/jurgenlust
> ____________________________________________________
>
>

Re: scheduler and input calendar question

Posted by Jurgen Lust <Ju...@gmail.com>.
Hi,

this is not something you can easily do with the schedule model, because
that class only contains the entries for the currently displayed
timespan in the schedule. When the schedule is in workweek mode for
example, the model contains the entries for the 5 days in the selected
week. Since the inputCalendar displays a whole month, that would be
incomplete.

Typically though, your implementation of the schedulemodel fetches the
entries from a database or iCal file, so you could extend this
implementation for use with the inputCalendar.

Next problem would be the rendering of days with an appointment in
bold/red. For that part I would have to look at the inputCalendar
component, because I don't know it very well myself... I'll get back to
you with this.

Jurgen 

Op donderdag 02-11-2006 om 05:52 uur [tijdzone +0100], schreef Holger
Prause:
> Hello,
> 
> i am planning to use the sheduler for my project (like at 
> http://example.irian.at/example-simple-20061102/schedule2.jsf)
> 
> My question is : how can i mark the days that have a entry in the 
> sheduler in the inputcalendar ?
> 
> Example: If i have an appointment on 3 january and 5th january in the 
> sheduler, at the input calendar these days should be marked bold / red.
> Do i have any chance to archieve it ? (without writing my own calendar)
> 
> Thank u very much,
> 
> Holger
> 
> 
> 
-- 
____________________________________________________
Jurgen Lust
email: jlust@apache.org
blog: http://jroller.com/page/jurgenlust
____________________________________________________