You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by nille hammer <ta...@winfonet.eu> on 2008/06/25 16:49:21 UTC
Re: Re: What if "Page" was removed from page names?
Hi list,
to answer Howard´s question, yes I would like that feature. Exactly as described. At the moment I prefix my page class names with the package name. I am not happy with that. I´d prefer to suffix them with "Page".
And my opinion to the discussion whether generation of urls should be configurable. I think it should NOT be configurable. The mechanism is good as it is.
1.) The generated urls serve the important purposes like being bookmarkable, no request-parameters etc. That is what is important about an url.
2.) I could imagine matching a class name to a small set of predefined values might be a bit easier than to something dynamically configurated. This might even ipmacht performance. Although surely not much and only at startup time. I haven´t looked into that part of the source code though.
3.) None of my customers really cares about how urls look like. Let it be "blogger", "myblogger" or "mybloggerpage". I am sure if you asked your customers, they would not be able to tell what the url is. If we are honest, the desire to make url generation configurable ist to give us developers something else to play with.
Regards, nillehammer
----- original Nachricht --------
Betreff: Re: What if "Page" was removed from page names?
Gesendet: Mi, 25. Jun 2008
Von: Andreas Andreou<an...@gmail.com>
> I'd really like to suggest an approach similar to the UriTemplate annotation
> for
> T4 pages that's included in tacos...
>
> See
> http://fisheye3.atlassian.com/browse/tacos/tacos-4.1/trunk/tacos-annotations
> /src/java/net/sf/tacos/rest
>
> It even supports aliases, so, no worries if you decide to change names
> and still want to old bookmarks - just use:
>
> @UriTemplate(value="index", alias = {"home", "default"})
> public class Home { ... }
>
>
> On 6/25/08, Lutz Hühnken <lh...@googlemail.com> wrote:
> > Shouldn't that be up to the developer (or whoever decides on the
> > URLs)? If you don't want the page suffix, why not just name the page
> > "Blogger" instead of "BloggerPage"? What if I wanted a url that reads
> > "mypage"? Would I have to name the page "MyPagePage"? I'm all for
> > convention over configuration, but here I feel some arbitrary rule
> > would be unnecessarily imposed on the developer.
> >
> > Just my two cents,
> >
> >
> > Lutz
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--- original Nachricht Ende ----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org