Hi,

Building a very similar component in my last project, we created external links
from the "MonthDay" to the View- and EditEvent pages.
This has the advantage, that you are able to bookmark the link and send it via
email.

Cheers,
    Markus

> Hi i'm a newbie to Tap and need some advice of what is the best practice
> for displaying links in components!
>
> Here is what i'm trying to do:
> A calendar displaying a month, each day in a square box, similar to
> outlooks month view. I've created a MonthDay component that displays
> information for each day.
>
> <tr jwcid="@Foreach" source="ognl:weekList" value="ognl:wk" element="tr">
>    <span jwcid="@Foreach" source="ognl:wk.dayIterator" value="ognl:day"
> element="b">
>      <span jwcid="@MonthDay" day="ognl:day">
>      </span>
>    </span>
> </tr>
>
> weekList is an arraylist of Weeks in the current month beeing rendered.
> Weeks is in turn an arraylist of Days in the current week beeing rendered.
> Days is a dataobject containing events and such.
>
> Now to my question, what is the best way to create links to other pages
> (from within the component) for example to a EditEvent page to edit a
> particular event. I want to call the EditEvent page from within
> the renderComponent() method,  and also pass one or several parameters to
> the EditEvent page.

--
Markus Eberle
TNG Technology Consulting
[EMAIL PROTECTED]
http://www.tngtech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to