Moving this discussion group

2006-07-31 Thread Daniel Trebbien

Hi All,

I was wondering if people would like to move this discussion group to
a different groups service, like Google groups.  I suggest Google
groups because it seems like many of the 'regulars' in this discussion
forum have GMail accounts.

Personally I like Google groups because the user interface is easy to
use, but would not mind other services like Yahoo's; anything but this
current email-based system (how archaic!).

It seems that someone has already started a tapestry group:
http://groups.google.com/group/tapestry

If you wouldn't mind, please check it out (and join).

Sincerely,
Daniel Trebbien.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Explicitly setting the locale

2006-07-24 Thread Daniel Trebbien

Hi Firas,

Thank you for the 'getRequestCycle().cleanup();' line.

Daniel Trebbien.

On 7/24/06, Firas A. <[EMAIL PROTECTED]> wrote:

Hi Daniel,

You would probably need to use an DirectLink on your page template:
Click here for German

In your page class:
public void setNewLocale(String localeString) {
Locale newLocale = getLocale(localeString); // Must be defined
somewhere
getEngine().setLocale(newLocale);
/* Must call cleanup(), otherwise Tapestry will use the pooled page
   and your new locale won't be activated:
*/
getRequestCycle().cleanup();
// Display the page in a new locale
throw new PageRedirectException(getPageName());
}

Hope this helps,



-Original Message-
From: Daniel Trebbien [ <mailto:[EMAIL PROTECTED]>
mailto:[EMAIL PROTECTED]
Sent: den 22 juli 2006 16:32
To: users@tapestry.apache.org
Subject: Explicitly setting the locale

Hello all,

I am developing a multilingual personal site for myself using Tapestry. I am
constantly setting my browser preferences to set the locale so that I can
view the page in each locale for testing.

This is somewhat time consuming. I would rather have links on the web page
that override the locale sent by the browser ('Click here for German',
'Click here for English').

Does anyone know how to do this?

Sincerely,
Daniel Trebbien.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Explicitly setting the locale

2006-07-22 Thread Daniel Trebbien

Hello all,

I am developing a multilingual personal site for myself using Tapestry. I am
constantly setting my browser preferences to set the locale so that I can
view the page in each locale for testing.

This is somewhat time consuming. I would rather have links on the web page
that override the locale sent by the browser ('Click here for German',
'Click here for English').

Does anyone know how to do this?

Sincerely,
Daniel Trebbien.