myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renzo Tomaselli <>
Subject Re: [Trinidad] avoiding style class aliasing
Date Wed, 14 Nov 2007 14:08:57 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
Thanks, Simon. Disabling compression makes things working like they did
Btw, the reason why it used to work with previous versions was that
until some versions ago (1.0.1) we could disable compression on:<br>
while now it's org.apache.myfaces.trinidad.<br>
Moreover, the best solution would be to compress only Trinidad classes
- leaving custom classes as they are, but I gues this is impossible if&nbsp;
translation occurs after css merging.<br>
-- Renzo<br>
Simon Lessard wrote:
  <meta http-equiv="Context-Type"
 content="text/html; charset=ISO-8859-1">
Hmmm, sounds like a bug. In compression mode, only .xe0 should be
generated. You can try to disable content compression for now using<br>
  <pre> &lt;context-param&gt;
&lt;/context-param&gt; </pre>
~ Simon<br>
  <div>On Nov 14, 2007 3:55 AM, Renzo Tomaselli &lt;<a
 moz-do-not-send="true" href=""></a>&gt; wrote:<br>
  <blockquote>Hi, I noticed an unpleasant effect due to Trinidad class
compression/aliasing. If I define my own class such as:<br>
.invisible {<br>
&nbsp; &nbsp;display: none;<br>
&nbsp; &nbsp;visibility: hidden;<br>
then the generated css contains:<br>
.invisible,.xe0 {display:none;visibility:hidden}
The rendered html page contains always *both* classes, even in places<br>
where xhtml source specified just .invisible.<br>
The final result is that any js code looking for .invisible fails.<br>
I'm using Trinidad 1.0.3. Till 1.0.1 these things were running properly.<br>
Even adding dummy attributes to my classes seems not working: an alias<br>
is generated anyway, and used in html (in place of original class name).<br>
Should I disable alisasing - leaving original class names ? Is that
possible at all ?<br>
-- Renzo<br>

View raw message