myfaces-dev mailing list archives

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

I have added a patch that implements the support for skin selectors
depending on the locale (https://issues.apache.org/jira/browse/TRINIDAD-1041).
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
accessibilityProfileDemo.jspx.

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

Regards,
Marius

Mime
View raw message