I digged into this yesterday and created a transfomer for my url's.

I managed to transform pages to swedish names with the group name up front.
Pretty pretty ...

Today I encountered a problem whit action methods that return Link's with
swedish characters in them.
It seems like the åäö get's screwed up when the request  makes it to the
browser and back.

See  this log extract that shows the Link as returned from the
onActionFromEdit method as well as the logged request that it leads to.

*2011-11-06 12:30:45.700 DEBUG utskicket.pages.wiki.WikiView - [ EXIT]
onActionFromEdit [/VillaSkurusundet/wiki/ändra/start]*
*2011-11-06 12:30:45.704 DEBUG u.s.UtskicketModule.RequestLogger - Request:
/VillaSkurusundet/wiki/?dra/start (Method=GET, browser=Mozilla/5.0 (Windows
NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106
Safari/535.2, isXHR=false)*
*
*
Due to this my transformer fails to decode the incoming request.

Surely I have missed something ...
Thanks in advance!

    ...

    @Log
    Object onActionFromEdit() {
        return
linkRenderer.createPageRenderLinkWithContext("wiki/edit", groupId,
pageName) ;
    }

    ....


2011/11/4 Gunnar Eketrapp <gunnar.eketr...@gmail.com>

> Ok thx for the tip!
>
>
> 2011/11/4 Alejandro Scandroli <alejandroscandr...@gmail.com>
>
>> Hi Gunnar
>>
>> You can also take a look at how tapestry-rounting is implemented.
>> http://tynamo.org/tapestry-routing+guide
>> http://svn.codehaus.org/tynamo/trunk/tapestry-routing/
>>
>> It may not be exactly what you need and may not have a good
>> performance in a site with lots of pages, but I think it can give you
>> a good idea of what you need to do in order to achieve what you need.
>>
>> Cheers.
>> Alejandro.
>>
>> On Thu, Nov 3, 2011 at 1:35 PM, Thiago H. de Paula Figueiredo
>> <thiag...@gmail.com> wrote:
>> > On Thu, 03 Nov 2011 10:16:40 -0200, Gunnar Eketrapp
>> > <gunnar.eketr...@gmail.com> wrote:
>> >
>> >> Can page name can be localized in an easy way !?  I would rather not
>> give
>> >> swedish names to my page classes unless I have to.
>> >> Is it possible to freely name a page. E.g. so that it separates words
>> with
>> >> dashes, e.g. "my-profile"
>> >> And finally if it is possible to name a page different from the class
>> name
>> >> should I go for Sweidsh chars in url's or should I not !?
>> >> I think wikipedia is using local char's in their url's ... so perhaps
>> that
>> >> is the answer!?
>> >
>> > You can do almost whatever you want with URLs: you just need to
>> implement
>> > the logic for mapping incoming URLs to page classes and activation
>> context
>> > (if any) and the reverse (pages and activation context to rewritten
>> URLs).
>> >
>> > --
>> > Thiago H. de Paula Figueiredo
>> > Independent Java, Apache Tapestry 5 and Hibernate consultant,
>> developer, and
>> > instructor
>> > Owner, Ars Machina Tecnologia da Informação Ltda.
>> > http://www.arsmachina.com.br
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> > For additional commands, e-mail: users-h...@tapestry.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>
>
> --
> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> Allévägen 2A, 132 42 Saltsjö-Boo
>



-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo

Reply via email to