I encounter this problem too. I have a de folder (short for data entry) and
add Node page inside it.

Then the tapestry generated URL become mysite/de/train/addNo (supposed to
mysite/de/train/addNode). In most cases the shortening work well, but in
this case, it break REST :(. I later decided to rename and refactor the
folder, but would be great if tapestry have better alternative to handle
this case more elegantly in the future. :)

On Thu, Aug 25, 2016 at 12:01 AM, Dmitry Gusev <dmitry.gu...@gmail.com>
wrote:

> Looking at code I don't think this is something you can configure easily
> with a symbol.
>
> If you really need to change page URLs you may use one of the URL rewriting
> techniques, i.e.:
>
> https://tapestry.apache.org/url-rewriting.html
> http://www.tynamo.org/tapestry-routing+guide/
>
>
> On Wed, Aug 24, 2016 at 6:26 PM, Lherm Nicolas <nlh...@sqli.com> wrote:
>
> > Okay I understand this.
> >
> >
> > However , would it posssible to keep the name without the "cut" by
> > Tapestry .
> >
> >
> > I mean create a page like address / CreateAddress and have the url ending
> > with CreateAdress ?
> >
> >
> > ________________________________
> > De : Dmitry Gusev <dmitry.gu...@gmail.com>
> > Envoyé : mercredi 24 août 2016 17:18:49
> > À : Tapestry users
> > Objet : Re: Logical Page Name Shortening
> >
> > To make URLs shorter/prettier, so you could name your java classes & TMLs
> > differently, i.e.:
> >
> > address/CreateAddress => address/create
> > user/CreateUser => user/create
> >
> > Without this feature your URLs would be address/createaddress and
> > user/createuser, or you would have to name your pages the same but put
> them
> > to different packages, which may be not convenient when you want to
> lookup
> > a class by its name or when you want to import one user.Create to
> > address.Create -- in java you'd have to use fully qualified names.
> >
> > On Wed, Aug 24, 2016 at 6:12 PM, Lherm Nicolas <nlh...@sqli.com> wrote:
> >
> > > Hi,
> > >
> > >
> > > Yes I saw it, but I don't understand why tapestry removed the suffix.
> > >
> > > ________________________________
> > > De : Dmitry Gusev <dmitry.gu...@gmail.com>
> > > Envoyé : mercredi 24 août 2016 16:54:46
> > > À : Tapestry users
> > > Objet : Re: Logical Page Name Shortening
> > >
> > > Hi, have you seen this?
> > >
> > > http://tapestry.apache.org/page-navigation.html
> > >
> > > On Wed, Aug 24, 2016 at 5:38 PM, Lherm Nicolas <nlh...@sqli.com>
> wrote:
> > >
> > > > Hello,
> > > >
> > > >
> > > > I have a question about the shortheneng URL's of somes page names.
> > > >
> > > >
> > > > I read that Tapestry removed the redundant suffix of the URL in
> > certains
> > > > cases, and and wanna know why or where do they do this ?
> > > >
> > > >
> > > > Thanks
> > > >
> > > >
> > >
> > >
> > > --
> > > Dmitry Gusev
> > >
> > > AnjLab Team
> > > http://anjlab.com
> > >
> >
> >
> >
> > --
> > Dmitry Gusev
> >
> > AnjLab Team
> > http://anjlab.com
> >
>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>



-- 
http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
twitter : @mreunionlabs @abangkis
page : https://plus.google.com/104168782385184990771

Reply via email to