Okay thanks,

I read the https://tapestry.apache.org/url-rewriting.html and saw that Tapestry 
URL Rewriting API does not exist anymore and has been replaced with the 
LinkTransformer service.


Is there any example to use this service ?


________________________________
De : Thiago H de Paula Figueiredo <thiag...@gmail.com>
Envoyé : vendredi 26 août 2016 15:18:31
À : Tapestry users
Objet : Re: Logical Page Name Shortening

You can always create a Jira ticket asking for a new configuration symbol
to be created to turn off logical page name shortening. Or, as Dmitry
already suggested, you can use URL rewriting to shape the URLs to your
needs. :)

On Thu, 25 Aug 2016 22:17:44 -0300, abangkis <abang...@gmail.com> wrote:

> 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
>>
>
>
>


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to