You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jesse Vitrone <je...@agentscape.com> on 2005/07/13 04:38:35 UTC
suggestions for how to display calendar
I'm working on an application that has some PIM functionality and has a
calendar / schedule that needs to show a monthly view of the calendar,
with all the events for that day. I'm not sure the best way to display
this using JSF.
I have it done just as a JSF tag from my pre-JSF times, and I'm not sure
how to convert my non-JSF logic to the JSF way of doing it. With my
current stuff, I loop through the days in a month, and for each day, I
go through my collection of events, find the ones that apply for that
day, and display them. I print out a table as I go through the days,
and when I hit sunday, I go to a new row in my table.
With JSF, I'd like to be able to do something similar. What's the best
way? Data Table? I don't think this would work well, since the link
back to the DataModel seems to be row based, which wouldn't really work,
since there are multiple events per day, and multiple days per row, so I
wouldn't have a nice JSF way of knowing which event was clicked. Do I
need a custom renderer? Do I need to make a whole custom component? Is
there just a good way to iterate over a collection in a jsp that's not a
data table?
This was pretty easy to write as a jsp tag, and I can't seem to think of
an easy way to do this with JSF. Any suggestions would be appreciated.
Thanks,
Jesse Vitrone
Re: suggestions for how to display calendar
Posted by Jesse Vitrone <je...@agentscape.com>.
Bruno,
Thanks, x:dataList is exactly what I was looking for. It's sitting
right there in the examples, can't believe I missed that one. Seems so
basic, I guess I was expecting it to be in the h: tags, and not need an
x: for it.
I'll take a look at the schedule one when it comes out, although I
think we're going to wind up trying to do some fancy DHTML / Javascript
stuff with out schedule display, so I'll probably stick to my own.
Thanks anyway.
Jesse
Bruno Aranda wrote:
>Jesse, does x:dataList work for you? with dataList you can iterate
>over a collection...
>
>BTW, the new schedule component works are pretty advanced so I think
>that very soon we will have the component in the sandbox. FYI, the
>component uses a data model (ScheduleModel) which contains a
>collection of entries/appointments.
>In a jsf page, the component will look more or less like this:
>
><x:schedule value="#{simpleSchedule.model}" id="schedule1"
> rendered="true" visibleEndHour="18" visibleStartHour="8"
> workingEndHour="17" workingStartHour="9" readonly="false"
> actionListener="#{simpleSchedule.actionPerformed}" />
>
>Jurgen, the component author, is working on a few last issues (last
>for this first version, of course, as the component will be improved
>more in the sandbox). Once he is ready, we will create the patches to
>include this component in the sandbox,
>
>Regards,
>
>Bruno
>
>2005/7/13, Jesse Vitrone <je...@agentscape.com>:
>
>
>> Thanks for pointing that out Mike, that looks pretty cool. I already have
>>the backend functionality for mine, so I'll probably just stick with what I
>>have, although I can take a peek at how they're displaying that one in the
>>jsp.
>>
>> Also - I've heard so much about JSF and JSTL not playing nicely, I
>>completely forgot that I can just use the c:foreach tag to loop through my
>>collection, or just keep the jsp taglib that I created for it, and just
>>write out links that point to an event detail jsf page and pass on the event
>>id as a request param. Doesn't seem like a very JSF way of doing it though.
>>
>> Jesse
>>
>>
>> Mike Kienenberger wrote:
>> On 7/12/05, Jesse Vitrone <je...@agentscape.com> wrote:
>>
>>
>>
>> I'm working on an application that has some PIM functionality and has
>>a calendar / schedule that needs to show a monthly view of the
>>calendar, with all the events for that day. I'm not sure the best way
>>to display this using JSF.
>>
>> Maybe this is what you're looking for -- search the mailing list
>>archives to find out more information.
>>
>>---------- Forwarded message ----------
>>From: Jurgen Lust <lo...@users.sourceforge.net>
>>Date: 07.06.2005 11:35
>>Subject: MyFaces contribution
>>To: manolito@users.sourceforge.net
>>Cc: lordlust@users.sourceforge.net
>>
>>
>>Message body follows:
>>
>>Hi,
>>
>>I have been working on a couple of JSF components for use in
>>web-based scheduling applications, which I needed for a
>>classroom management webapp at Ghent University. I was
>>planning to release the components as open source, but
>>instead of creating a standalone project, perhaps it would
>>be more interesting if I could contribute it to the MyFaces
>>project. Would you be interested in this?
>>
>>I have deployed a little demo on our application server here:
>>
>>UISchedule component:
>>http://mandril.ugent.be:7780/calfaces/simple/schedule.jsf
>>
>>UIPlanner component:
>>http://mandril.ugent.be:7780/calfaces/simple/planner.jsf
>>
>>Kind regards,
>>
>>Jurgen Lust
>>
>>--
>>This message has been sent to you, a registered SourceForge.net user,
>>by another site user, through the SourceForge.net site. This message
>>has been delivered to your SourceForge.net mail alias. You may reply
>>to this message using the "Reply" feature of your email client, or
>>using the messaging facility of SourceForge.net at:
>>https://sourceforge.net/sendmessage.php?touser=394975
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
>
Re: suggestions for how to display calendar
Posted by Bruno Aranda <br...@gmail.com>.
Jesse, does x:dataList work for you? with dataList you can iterate
over a collection...
BTW, the new schedule component works are pretty advanced so I think
that very soon we will have the component in the sandbox. FYI, the
component uses a data model (ScheduleModel) which contains a
collection of entries/appointments.
In a jsf page, the component will look more or less like this:
<x:schedule value="#{simpleSchedule.model}" id="schedule1"
rendered="true" visibleEndHour="18" visibleStartHour="8"
workingEndHour="17" workingStartHour="9" readonly="false"
actionListener="#{simpleSchedule.actionPerformed}" />
Jurgen, the component author, is working on a few last issues (last
for this first version, of course, as the component will be improved
more in the sandbox). Once he is ready, we will create the patches to
include this component in the sandbox,
Regards,
Bruno
2005/7/13, Jesse Vitrone <je...@agentscape.com>:
> Thanks for pointing that out Mike, that looks pretty cool. I already have
> the backend functionality for mine, so I'll probably just stick with what I
> have, although I can take a peek at how they're displaying that one in the
> jsp.
>
> Also - I've heard so much about JSF and JSTL not playing nicely, I
> completely forgot that I can just use the c:foreach tag to loop through my
> collection, or just keep the jsp taglib that I created for it, and just
> write out links that point to an event detail jsf page and pass on the event
> id as a request param. Doesn't seem like a very JSF way of doing it though.
>
> Jesse
>
>
> Mike Kienenberger wrote:
> On 7/12/05, Jesse Vitrone <je...@agentscape.com> wrote:
>
>
>
> I'm working on an application that has some PIM functionality and has
> a calendar / schedule that needs to show a monthly view of the
> calendar, with all the events for that day. I'm not sure the best way
> to display this using JSF.
>
> Maybe this is what you're looking for -- search the mailing list
> archives to find out more information.
>
> ---------- Forwarded message ----------
> From: Jurgen Lust <lo...@users.sourceforge.net>
> Date: 07.06.2005 11:35
> Subject: MyFaces contribution
> To: manolito@users.sourceforge.net
> Cc: lordlust@users.sourceforge.net
>
>
> Message body follows:
>
> Hi,
>
> I have been working on a couple of JSF components for use in
> web-based scheduling applications, which I needed for a
> classroom management webapp at Ghent University. I was
> planning to release the components as open source, but
> instead of creating a standalone project, perhaps it would
> be more interesting if I could contribute it to the MyFaces
> project. Would you be interested in this?
>
> I have deployed a little demo on our application server here:
>
> UISchedule component:
> http://mandril.ugent.be:7780/calfaces/simple/schedule.jsf
>
> UIPlanner component:
> http://mandril.ugent.be:7780/calfaces/simple/planner.jsf
>
> Kind regards,
>
> Jurgen Lust
>
> --
> This message has been sent to you, a registered SourceForge.net user,
> by another site user, through the SourceForge.net site. This message
> has been delivered to your SourceForge.net mail alias. You may reply
> to this message using the "Reply" feature of your email client, or
> using the messaging facility of SourceForge.net at:
> https://sourceforge.net/sendmessage.php?touser=394975
>
>
>
>
>
>
Re: suggestions for how to display calendar
Posted by Jesse Vitrone <je...@agentscape.com>.
Thanks for pointing that out Mike, that looks pretty cool. I already
have the backend functionality for mine, so I'll probably just stick
with what I have, although I can take a peek at how they're displaying
that one in the jsp.
Also - I've heard so much about JSF and JSTL not playing nicely, I
completely forgot that I can just use the c:foreach tag to loop through
my collection, or just keep the jsp taglib that I created for it, and
just write out links that point to an event detail jsf page and pass on
the event id as a request param. Doesn't seem like a very JSF way of
doing it though.
Jesse
Mike Kienenberger wrote:
>On 7/12/05, Jesse Vitrone <je...@agentscape.com> wrote:
>
>
>>>I'm working on an application that has some PIM functionality and has
>>>a calendar / schedule that needs to show a monthly view of the
>>>calendar, with all the events for that day. I'm not sure the best way
>>>to display this using JSF.
>>>
>>>
>
>Maybe this is what you're looking for -- search the mailing list
>archives to find out more information.
>
>---------- Forwarded message ----------
>From: Jurgen Lust <lo...@users.sourceforge.net>
>Date: 07.06.2005 11:35
>Subject: MyFaces contribution
>To: manolito@users.sourceforge.net
>Cc: lordlust@users.sourceforge.net
>
>
>Message body follows:
>
>Hi,
>
>I have been working on a couple of JSF components for use in
>web-based scheduling applications, which I needed for a
>classroom management webapp at Ghent University. I was
>planning to release the components as open source, but
>instead of creating a standalone project, perhaps it would
>be more interesting if I could contribute it to the MyFaces
>project. Would you be interested in this?
>
>I have deployed a little demo on our application server here:
>
>UISchedule component:
>http://mandril.ugent.be:7780/calfaces/simple/schedule.jsf
>
>UIPlanner component:
>http://mandril.ugent.be:7780/calfaces/simple/planner.jsf
>
>Kind regards,
>
>Jurgen Lust
>
>--
>This message has been sent to you, a registered SourceForge.net user,
>by another site user, through the SourceForge.net site. This message
>has been delivered to your SourceForge.net mail alias. You may reply
>to this message using the "Reply" feature of your email client, or
>using the messaging facility of SourceForge.net at:
>https://sourceforge.net/sendmessage.php?touser=394975
>
>
>
>
>
Re: suggestions for how to display calendar
Posted by Mike Kienenberger <mk...@gmail.com>.
On 7/12/05, Jesse Vitrone <je...@agentscape.com> wrote:
> > I'm working on an application that has some PIM functionality and has
> > a calendar / schedule that needs to show a monthly view of the
> > calendar, with all the events for that day. I'm not sure the best way
> > to display this using JSF.
Maybe this is what you're looking for -- search the mailing list
archives to find out more information.
---------- Forwarded message ----------
From: Jurgen Lust <lo...@users.sourceforge.net>
Date: 07.06.2005 11:35
Subject: MyFaces contribution
To: manolito@users.sourceforge.net
Cc: lordlust@users.sourceforge.net
Message body follows:
Hi,
I have been working on a couple of JSF components for use in
web-based scheduling applications, which I needed for a
classroom management webapp at Ghent University. I was
planning to release the components as open source, but
instead of creating a standalone project, perhaps it would
be more interesting if I could contribute it to the MyFaces
project. Would you be interested in this?
I have deployed a little demo on our application server here:
UISchedule component:
http://mandril.ugent.be:7780/calfaces/simple/schedule.jsf
UIPlanner component:
http://mandril.ugent.be:7780/calfaces/simple/planner.jsf
Kind regards,
Jurgen Lust
--
This message has been sent to you, a registered SourceForge.net user,
by another site user, through the SourceForge.net site. This message
has been delivered to your SourceForge.net mail alias. You may reply
to this message using the "Reply" feature of your email client, or
using the messaging facility of SourceForge.net at:
https://sourceforge.net/sendmessage.php?touser=394975
Re: suggestions for how to display calendar
Posted by Jesse Vitrone <je...@agentscape.com>.
I should point out that it's not a priority for this to be a reusable
component. It's really just going to be used on this one page, so if
the easiest solution is just some way of iterating over the collection
and it takes 30 lines in the jsp for it to work, that's not a problem.
Thanks again,
Jesse
Jesse Vitrone wrote:
> I'm working on an application that has some PIM functionality and has
> a calendar / schedule that needs to show a monthly view of the
> calendar, with all the events for that day. I'm not sure the best way
> to display this using JSF.
>
> I have it done just as a JSF tag from my pre-JSF times, and I'm not
> sure how to convert my non-JSF logic to the JSF way of doing it. With
> my current stuff, I loop through the days in a month, and for each
> day, I go through my collection of events, find the ones that apply
> for that day, and display them. I print out a table as I go through
> the days, and when I hit sunday, I go to a new row in my table.
>
> With JSF, I'd like to be able to do something similar. What's the
> best way? Data Table? I don't think this would work well, since the
> link back to the DataModel seems to be row based, which wouldn't
> really work, since there are multiple events per day, and multiple
> days per row, so I wouldn't have a nice JSF way of knowing which event
> was clicked. Do I need a custom renderer? Do I need to make a whole
> custom component? Is there just a good way to iterate over a
> collection in a jsp that's not a data table?
>
> This was pretty easy to write as a jsp tag, and I can't seem to think
> of an easy way to do this with JSF. Any suggestions would be
> appreciated.
>
> Thanks,
> Jesse Vitrone
>
>
> .
>