Tapestry has a built-in mechanism for overriding the browser language
settings with a cookie value.  If you set the cookie with the language
preference, then you don't need to override anything in tapestry. 
Just make sure to set the cookie whenever they log in, based on a
property you have stored with the user info.  Unfortunately, I don't
have demo code at hand, as I haven't used this feature, but it is
documented on the site/wiki or in Enjoy Web Development with Tapestry.

--sam

On 4/25/06, Inge Solvoll <[EMAIL PROTECTED]> wrote:
> I would like to introduce separate language files for each customer in my
> application. This means overriding the way tapestry handles "
> org.apache.tapestry.global-properties". I need to hook into that mechanism
> to supply a company id for looking up that company's properties files. I
> guess each company will have a separate folder containing its properties
> files.
>
> I'm also working on this for the struts part of the application, involving
> the ApplicationServlet, MessageResources and the bean:message custom tag.
>
> Any tips on where to look to change the tapestry behaviour for looking up
> language properties files?
>
> Thanks,
>
> Inge
>
>

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

Reply via email to