You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andy Chu <an...@gmail.com> on 2005/05/16 11:35:17 UTC

How to Make Localization Immeditately ?

Dear All,

In the workbench example, there is a localization example. The localization 
will take effect at the page next to the localization selection page. Is 
there any approach to make the localization effect take place immediately ?

I tried redirecting the current page from a temp page on its pageEndRender 
method. Unfortunately, I get fail.

Best wishes, Andy

-- 
我是天空裡的一片雲
偶爾投影在妳的波心

----偶然.徐志摩

Re: How to Make Localization Immeditately ?

Posted by Ron Piterman <mp...@vollbio.de>.
I am not sure I understand what you mean, but i will give it a shot.
The should be a listener method somewhere which changes the engine's
locale AND calls cycle.active(page).
If you omit the activate() method, the same page will be rendered again,
with the new  locale "in mind"...
cheers,
Ron

ציטוט Andy Chu:
> Dear All,
> 
> In the workbench example, there is a localization example. The localization 
> will take effect at the page next to the localization selection page. Is 
> there any approach to make the localization effect take place immediately ?
> 
> I tried redirecting the current page from a temp page on its pageEndRender 
> method. Unfortunately, I get fail.
> 
> Best wishes, Andy
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: How to Make Localization Immeditately ?

Posted by Howard Lewis Ship <hl...@gmail.com>.
Tapestry doesn't support this; the detail are discussed in the Tapestry In 
Action book.

In my lab classes, one lab is about creating a component and a matching 
engine service used to change the locale without switching pages.

On 5/16/05, Andy Chu <an...@gmail.com> wrote:
> 
> Dear All,
> 
> In the workbench example, there is a localization example. The 
> localization
> will take effect at the page next to the localization selection page. Is
> there any approach to make the localization effect take place immediately 
> ?
> 
> I tried redirecting the current page from a temp page on its pageEndRender
> method. Unfortunately, I get fail.
> 
> Best wishes, Andy
> 
> --
> 我是天空裡的一片雲
> 偶爾投影在妳的波心
> 
> ----偶然.徐志摩
> 



-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com

RE: How to Make Localization Immeditately ?

Posted by Rigmor Ukuhe <ri...@finestmedia.ee>.

> -----Original Message-----
> From: Andy Chu [mailto:andychu@gmail.com]
> Sent: Monday, May 16, 2005 12:35 PM
> To: Tapestry users
> Subject: How to Make Localization Immeditately ?
> 
> Dear All,
> 
> In the workbench example, there is a localization example. The
> localization
> will take effect at the page next to the localization selection page. Is
> there any approach to make the localization effect take place immediately
> ?
> 
> I tried redirecting the current page from a temp page on its pageEndRender
> method. Unfortunately, I get fail.

[Rigmor Ukuhe] For me following seems to work

I got DirectLink to method where i do:

getEngine().setLocale(specified locale);			
getPage().getRequestCycle().cleanup();
throw new PageRedirectException(....

Rigmor Ukuhe

> 
> Best wishes, Andy
> 
> --
> ��������e��һƬ�
> ż��ͶӰ�ڊ��IJ���
> 
> ----żȻ.��־Ħ


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org