You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Howard M. Lewis Ship" <hl...@attbi.com> on 2003/03/24 19:04:58 UTC
RE: How to access the requestcycle in a Listener
You can also get the request cycle as getPage().getRequestCycle().
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/proposals/tapestry
> -----Original Message-----
> From: Juan Alvarez [mailto:jalvarez@fluidsignal.com]
> Sent: Wednesday, February 26, 2003 10:05 AM
> To: tapestry-user@jakarta.apache.org
> Subject: How to access the requestcycle in a Listener
>
>
> I made a component who receives a Collection of elements
> (Person) for example, and the generate a Table with two links
> per item, the first is a edit and the second remove.
>
> Both links are DirectLink with the Id of the item as a parameter.
>
> The component, receives as parameter the vector and one
> listener, who as two methods
>
> remove(String id)
>
> edit(String id)
>
> All works perfect, but the problem is, when i want to forward
> to some page inside this functions?
>
> One possibility is passing as parameter of the DirectLink the
> requestCycle, but is pretty ugly. Some recomendation?
>
> Thanks in advance!
>
> --
> Juan Alvarez Fluidsignal Group S.A.
> mailto:jalvarez@fluidsignal.com http://www.fluidsignal.com/
> Key fingerprint: 15C4 0986 A174 862A B607 8EEA 934F 8649 07E2 EA40
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>