Hi Alexander,

On Thu, Oct 15, 2009 at 11:11 PM, Alexander Reelsen <a...@emplify.de> wrote:

> Hi,
>
> after reading the new german book on Tapestry I am thinking to take a
> closer look at it. It is a very nice and clean structured book, which
> can be read quite easily at a rainy weekend. Very well done.
>

It's nice to read some feedback from readers. Thanks!. I'm really happy that
the book made you take a closer look at Tapestry. This is the most wonderful
feadback. This is why I wrote the book. Thus it was worth to write it. :)

>
> One question I could not figure out from the book is a question
> regarding complex url redirects. With complex I mean injecting certain
> properties based on the url (like spring 3 supports with its
> requestmapping annotation and using expression language like
>
> @RequestMapping(value="/{tenant}/{user}/reservations/{id}",
> method=RequestMethod.GET)
>

URL rewrittng is indeed not covered by the book. It is not possible in
Tapestry to map different methods of a page to different paths. Event
handler path is an exception.

>
> Is is possible to do something like this with tapestry as well, like
> injecting the specific tenant, user and reservation into the page
> (which in this case means the user is dependant from the tenant and
> the reservation id from the user)?
>

As Thiago already pointed out, you can provide activation methods with
several params.

void onActivate(Tenant tenant, User user, Long id)

Is it what you are looking for?

>
> My first guess would be to write an own ComponentEventDispatcher for
> this, but any help or insight is greatly appreciated.
>
> Thanks and have a nice day!
>
>
> --Alexander
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko

Reply via email to