myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marius Petoi <>
Subject [Trinidad][Skinning]Support @locale rules (TRINIDAD-1041)
Date Wed, 09 Dec 2009 12:57:28 GMT

I have added a patch that implements the support for skin selectors
depending on the locale (
This is done in the CSS using @locale rules. The syntax of the @locale rules
is similar to the syntax of the @agent and @platform rules:

@locale en-us, fr
     /* skin selectors definitions go here */

The set of supported locales is afterwards stored in each StyleSheetNode. I
also implemented an example in the trinidad-demo. There is a skin
(localeDemo.css) which contains @locale rules. Afterwards, the
localeDemo.jspx page displays a textInput with a different color, depending
on the locale. In order to configure the proper skin, a "LocaleDemoBean" is
used, which is used for configuring the proper skin-family (localeDemo), in
the same way in which the accessibility profile is configured for

Could you please have a look over the patch and see if this resolves the


View raw message