You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by kranga <kr...@k2d2.org> on 2007/06/26 14:38:03 UTC
T5: Feature request
Hi Tapestry developers:
Is it possible to add friendly/custom URL support using annotations? If
I mark my page class with an annotation such as @URL("/a/b/c/foo"), then
Tapestry can internally automatically generate a filter that maps the URL to
my page class. So a request such as /a/b/c/foo?id=1 can be handled by the
appropriate class (in this case setting a field called id to 1). Is this
possible?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: Feature request
Posted by Marcell Manfrin Barbacena <ba...@gmail.com>.
What if we contribute this information to a URLFriendlyMapper using IoC?
[]s
On 6/26/07, Howard Lewis Ship <hl...@gmail.com> wrote:
> The real issue with this kind of annotation-based mapping is that to
> accomplish it would require loading all the page classes in the entire
> application at startup (or on class reload), just so the annotations
> can be read. I may look into another option, reading the annotation
> without loading the class into memory. It's still something I've been
> trying to avoid due to the overhead. I want Tapestry to scale to
> thousands of pages.
>
> On 6/26/07, kranga <kr...@k2d2.org> wrote:
> > Hi Tapestry developers:
> > Is it possible to add friendly/custom URL support using annotations? If
> > I mark my page class with an annotation such as @URL("/a/b/c/foo"), then
> > Tapestry can internally automatically generate a filter that maps the URL to
> > my page class. So a request such as /a/b/c/foo?id=1 can be handled by the
> > appropriate class (in this case setting a field called id to 1). Is this
> > possible?
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
"Nobody knows who i really am
I never felt this empty before
And if I never need someone to come along
Who's gonna comfort me and keep me strong?"
--
Marcell Manfrin Barbacena
barbacena@gmail.com
MSN Messenger: marcell84bruk@hotmail.com
ICQ UIN: 63671762
Skype: callto://marcell84bruk
+55 (83) 8808-8555 (Oi)
+55 (62) 8172-5708 (Tim)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: Feature request
Posted by Howard Lewis Ship <hl...@gmail.com>.
The real issue with this kind of annotation-based mapping is that to
accomplish it would require loading all the page classes in the entire
application at startup (or on class reload), just so the annotations
can be read. I may look into another option, reading the annotation
without loading the class into memory. It's still something I've been
trying to avoid due to the overhead. I want Tapestry to scale to
thousands of pages.
On 6/26/07, kranga <kr...@k2d2.org> wrote:
> Hi Tapestry developers:
> Is it possible to add friendly/custom URL support using annotations? If
> I mark my page class with an annotation such as @URL("/a/b/c/foo"), then
> Tapestry can internally automatically generate a filter that maps the URL to
> my page class. So a request such as /a/b/c/foo?id=1 can be handled by the
> appropriate class (in this case setting a field called id to 1). Is this
> possible?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org