Re: How to make link correctly

2009-03-20 Thread Francois Armand
Ville Virtanen wrote: Hi, as far as I know T5 still does not expose any service to create links the way we need to. I believe that the best solution is just to isolate the problem by creating a service to use when generating links. This way if the used T5 internal services change you have single

Re: How to make link correctly

2009-03-20 Thread Ville Virtanen
Hi, as far as I know T5 still does not expose any service to create links the way we need to. I believe that the best solution is just to isolate the problem by creating a service to use when generating links. This way if the used T5 internal services change you have single point to correct in yo

Re: How to make link correctly

2009-03-19 Thread Francois Armand
Ville Virtanen wrote: Hi, [...] Have you find any solution ? I have the same concern as you especially when working with dispatcher that redirect to T5 pages under certain condition. -- Francois Armand Etudes & Développements J2EE Groupe Linagora - http://www.linagora.com Tél.: +33 (0)1

Re: How to make link correctly

2009-03-11 Thread Thiago H. de Paula Figueiredo
On Wed, Mar 11, 2009 at 10:01 AM, Andy Pahne wrote: > I see. Let me first admit that my wording Now I follow you perfectly. :) The issues you mentioned are very important, but the way I plan to implement URL i18nization is using URL rewriting in a way that the original, non i18n URLs are left un

Re: How to make link correctly

2009-03-11 Thread Andy Pahne
Thiago H. de Paula Figueiredo schrieb: On Wed, Mar 11, 2009 at 7:45 AM, Andy Pahne wrote: This is an exceptionally good question. Links will have to be created completly out of the web application context. Why? I'm not following you . . . I think this is going to be even more nec

Re: How to make link correctly

2009-03-11 Thread Thiago H. de Paula Figueiredo
On Wed, Mar 11, 2009 at 7:45 AM, Andy Pahne wrote: > This is an exceptionally good question. Links will have to be created > completly out of the web application context. Why? I'm not following you . . . > I think this is going to be even more necessary, when the recent changes > about URL i18n

Re: How to make link correctly

2009-03-11 Thread Andy Pahne
ComponentClassResolver that you can look at to help you construct the links and resolve valid page names. Peter - Original Message - From: "Ville Virtanen" To: users@tapestry.apache.org Sent: Wednesday, 11 March, 2009 10:53:56 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject:

Re: How to make link correctly

2009-03-11 Thread Peter Stavrinides
ns, Beirut, Bucharest, Istanbul Subject: Re: How to make link correctly Thanks for the reply, Let me rephrase :) What is the best practice for creating org.apache.tapestry5.Link instances if I have the page class at my disposal? I see that component resources are not internal and provide functionality I

Re: How to make link correctly

2009-03-11 Thread Ville Virtanen
Thanks for the reply, Let me rephrase :) What is the best practice for creating org.apache.tapestry5.Link instances if I have the page class at my disposal? I see that component resources are not internal and provide functionality I need, but is it ok to use the service without any component or

Re: How to make link correctly

2009-03-11 Thread Peter Stavrinides
Yes, see org.apache.tapestry5.ComponentResources: Link link = resources.createPageLink(_page, false, _context); There are a number of ways to construct a link in Tapestry, choose whats best for you. From an event you can return a class a Tapestry Page Object a URI or a Link object, have I missed