myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafa Pérez <>
Subject Re: Trinidad:Skins
Date Sat, 13 Mar 2010 13:23:35 GMT

DISABLE_CONTENT_COMPRESSION is useful to figure out what styles are apllied
to the components, but you should not use the parsed CSS classes to design
your skin, because turning on/off this feature causes the final CSS classes
to change. You should always use Trinidad selectors.

E.g., if you want to apply a differente font color style to a
tr:commandButton, then you should write in your skin's CSS:

af|commandButton {
  color: red;

instead of (CSS style applied with DISABEL_CONTENT_COMPRESSION=true):
.af_commandButton {
  color: red;

or (CSS style applied with DISABEL_CONTENT_COMPRESSION=false)
.xb3 {
  color: red;

Please, take a look here and here for more
information about skinning.


-- Rafa

PS: DISABEL_CONTENT_COMPRESSION should be turned off in production sites, to
make the CSS lighter.

On Fri, Mar 12, 2010 at 11:15 PM, <> wrote:

> Hi Jose,
> You don't need to know how how skin selectors are compressed. Please
> disable the compression like .xbo, .xba  while developing your skin by using
> below in web.xml:
>  <context-param>
> <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name>
>       <param-value>true</param-value>
>   </context-param>
> Thanks
> Mamallan
> On 3/12/2010 11:19 AM, José Miguel Loor wrote:
>> Hi
>> I would like to know, wich skin elements are responsible for rendering the
>> .xbo and .xba style classes in trinidad. It would be very useful to have a
>> map of wich elements renders wich style; i mean
>> af|table renders .xyz1 , .xyz2 elements in the css file and so on; the
>> whole documentation about this is very poor, creating a full customized skin
>> is hell
>> Thanks

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message