Hi!
Inspired by jsr311's UriTemplate annotation
(https://jsr311.dev.java.net/releases/0.2/javax/ws/rs/UriTemplate.html)
I had once set out to do something similar for T4
(http://tacos.sourceforge.net/tacos4.1/tacos-annotations/rest.html)
It worked fine though i never got to supporting stuff like
@UriTemplate("${car.id}")
(which is not that difficult to do) mainly due to the rewrite filter found at
http://tuckey.org/urlrewrite/ which is easy to use/configure, keeps
all rules in one place
and even works for jsp
Recently i also came across http://dev.horde.org/routes/manual/index.html but
that's in PHP land :)
The reason i'm writing down those:
1) perhaps those links provide inspiration
2) trying to make sure we're not reinventing the wheel - or at least if we do,
there's a terribly good reason for it!
3) I love messing with urls too - if indeed there's scope for this
project, i'll help
PS Having a strong relationship between page and URL makes sense, but
i can accept that
in practice ppl may want/need to bend this relationship - a rewrite
engine will help them do
just that!
On Thu, Mar 5, 2009 at 2:38 PM, Thiago H. de Paula Figueiredo
<[email protected]> wrote:
> On Thu, Mar 5, 2009 at 8:04 AM, Kristian Marinkovic
> <[email protected]> wrote:
>> hi thiago
>
> Hi!
>
>> +1
>>
>> i have the same problem as described by markus. a fully
>> internationalized web app should also have internationalized
>> urls. not just urls implied by the class names.
>
> I guess I answered it in my last message in this thread. :)
>
>> i'd also wish to have positional parameters that i could set
>> on a per page/link basis. example in german below:
>>
>> @URL("gebrauchtwagen/${car.id}/ausstattung/${equipment.id}")
>> public class CarEquipment
>> {
>> }
>
> If I've undersrtood correctly what you mean, this would break the
> Tapestry philosophy of strong relationship between page and URL,
> including name. Tapestry 4, as far as I can remember, doesn't have
> this strong relationship and Howard thought that that wasn't the best
> way to do it. On the other hand, the URL rewriting could solve at
> least partly what you want. The other part (positional parameters)
> could be solved by using onActivate(EventContext context).
>
> --
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Andreas Andreou - [email protected] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]