Re: URL handling ..

2011-11-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Nov 2011 14:10:28 -0200, Martin Strand wrote: I changed the default URLEncoder to assume everything is "safe" except for a few characters: static final String ENCODED_NULL = "$N"; static final String ENCODED_BLANK = "$B"; private final BitSet unsafe = new BitSet(128); { mark

Re: URL handling ..

2011-11-07 Thread Martin Strand
On Mon, 07 Nov 2011 07:46:47 +0100, Kalle Korhonen wrote: There's not been a T5 project where I haven't needed to override URLEncoder service. Take a look at T5's URLEncoderImpl, override it with your version and mark whichever characters you prefer as safe (i.e. not encoded). Kalle I chan

Re: URL handling ..

2011-11-07 Thread Gunnar Eketrapp
Thank's Kalle for the advice! Now I know what has to be done! I wonder how long the wonderful atmosphere in this list will continue. I hope forever ... 2011/11/7 Kalle Korhonen > On Sun, Nov 6, 2011 at 10:26 PM, Gunnar Eketrapp > wrote: > > Now I am phasing another problem and that is that

Re: URL handling ..

2011-11-06 Thread Kalle Korhonen
On Sun, Nov 6, 2011 at 10:26 PM, Gunnar Eketrapp wrote: > Now I am phasing another problem and that is that T5 seems to encode > context string in a way that they are not displayed properly in the the > browser. > I.e. if I URL encode the swedish word Räksmörgås (=Shrimp sandwich) i > get *r%C3%A4

Re: URL handling ..

2011-11-06 Thread Gunnar Eketrapp
Hi! I will answer this myself for someone else that encounters the same problem (=equal stupid). The problem was that my LinkTransformer had to encode the swedish page names in the path passes to LinkImpl. I did this in this way (slashes shall not be encoded!) private String urlEncodedPath(Stri

Re: URL handling ..

2011-11-06 Thread Gunnar Eketrapp
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 screw

Re: URL handling ..

2011-11-04 Thread Gunnar Eketrapp
Ok thx for the tip! 2011/11/4 Alejandro Scandroli > 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

Re: URL handling ..

2011-11-04 Thread Alejandro Scandroli
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

Re: URL handling ..

2011-11-03 Thread Thiago H. de Paula Figueiredo
On Thu, 03 Nov 2011 10:16:40 -0200, Gunnar Eketrapp 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 fi

Re: URL handling ..

2011-11-03 Thread Gunnar Eketrapp
OK thanks to both of you! Some more questions ! 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

Re: URL handling ..

2011-11-03 Thread Emmanuel DEMEY
Hi, If you need more informations about LinkTransformer, this post is very helpful : http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/ Emmanuel 2011/11/2 Thiago H. de Paula Figueiredo > On Wed, 02 Nov 2011 16:53:37 -0200, Gunnar Eketrapp < > gunnar.eketr...@gmail.com> wrote:

Re: URL handling ..

2011-11-02 Thread Thiago H. de Paula Figueiredo
On Wed, 02 Nov 2011 16:53:37 -0200, Gunnar Eketrapp wrote: Hi ! Hi! *https://utskicket.se/GroupA/economy/accounting/2011* and not *https://utskicket.se/economy/accounting/GroupA/2011* I just found the LinkTransforner interfaces and I guess that's the way to go. Yep! Is there any hidde

URL handling ..

2011-11-02 Thread Gunnar Eketrapp
Hi ! I have a T5 site that is about to be launched with lots of pages. The site will help various associations up here in Sweden with their administration. (Members register, Billing, Economy, Agendas, Protocol, Wiki, bla, bla) The domain name will be *utskicket.se* Now to my question. For a pa