This is my action handler
    void onActionFromToggleLocale()
    {
        Locale current = locale.get();
        if (current == null || current.getDisplayLanguage().equals("en"))
                locale.set(Locale.CANADA_FRENCH);
        else
                locale.set(Locale.CANADA);
    }

btw, is your action handler inside a component or in the page class?
How are the urls generated looking like?




DH-14 wrote:
> 
> Since my action handler returns Void, so in my case T5 will return current
> page(with context) and redirects, here T5 will carry the context again
> without any work of mine.
> 
> What about your action handler?
> 
> DH
> http://www.gaonline.com.cn
> 
> ----- Original Message ----- 
> From: "Erik Putrycz" <e...@apption.com>
> To: <users@tapestry.apache.org>
> Sent: Tuesday, August 25, 2009 11:19 AM
> Subject: Re: Create actionlinks in components with page context
> 
> 
>> 
>> 
>> 
>> DH-14 wrote:
>>> 
>>> I don't quite understand your case.
>>> The page activation context has been handled by Tapestry itself, we
>>> don't
>>> need handle it in our action link.
>>> I have finished something similar to your case. I just set the correct
>>> locale to PersistentLocale and everything works perfectly.
>>> 
>> 
>> when I have a page with a url like http://localhost:8080/myapp/modules/1
>> (1
>> is the context), the actionlink doesn't carry the 1 and the action id is
>> lost after clicking on my actionlink. The action in the code happens but
>> after it tries to redirect to http://localhost:8080/myapp/modules which
>> doesn't work because it requires an activation parameter.
>> Is this working differently for you?
>> 
>> -----
>> Apption Software
>> -- 
>> View this message in context:
>> http://www.nabble.com/Create-actionlinks-in-components-with-page-context-tp25123666p25127643.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>>
> 


-----
Apption Software
-- 
View this message in context: 
http://www.nabble.com/Create-actionlinks-in-components-with-page-context-tp25123666p25135763.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to