You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by mu...@fantasymail.de on 2007/07/02 13:05:39 UTC
how to overwrite the Locale in BaseEngine
What would be the most reliable way to overwrite the Locale for the Component and Page messages inside an extended BaseEngine?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: how to overwrite the Locale in BaseEngine
Posted by Hans Drexler <dr...@geotax.nl>.
On Mon, 02 Jul 2007 13:05:39 +0200, munich wrote
> What would be the most reliable way to overwrite the Locale for the
> Component and Page messages inside an extended BaseEngine?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
Our code:
private static final Locale NL = new Locale("nl","NL");
public final void setLocale(Locale locale) {
____if (getLocale() == null ) {
________super.setlocale(NL);
____} else {
________super.setLocale(locale);
____}
----
Hans Drexler
GeoTax en WOZ-Support b.v.
e: drexler@geotax.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org