incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeanne Waldman <jeanne.wald...@oracle.com>
Subject Re: Debuging CSS
Date Fri, 30 Mar 2007 18:17:35 GMT
Done.
http://issues.apache.org/jira/browse/ADFFACES-431


      add public api to turn styleclass compression off for debugging

- Jeanne

Scott O'Bryan wrote:
> Sounds like a JIRA ticket waiting to happen...  :)
>
>
> Jeanne Waldman wrote:
>> I think we should have a public api to turn styleclass compression 
>> off, like always turn off styleclass compression when in debug mode.
>>
>> Chris Hane wrote:
>>> Ah, I went back to the page and it is not actually on the wiki!  
>>> There is a link from the wiki that goes to this static page.  The 
>>> link to the documentation on the wiki is here:
>>>
>>> http://wiki.apache.org/myfaces/Trinidad
>>>
>>> It's the external link to the "Some documentation from mvn site".
>>>
>>> Chris....
>>>
>>>
>>>
>>> Simon Lessard wrote:
>>>> Chris,
>>>>
>>>> Good point about it not being mentioned in the Wiki, it surely 
>>>> deserve a
>>>> place there now that generated CSS no longer contains the 
>>>> uncompressed value
>>>> (recent change). You need to be logged to edit the Wiki but anyone 
>>>> can get
>>>> an account I think. I can also add it myself if you prefer.
>>>>
>>>> The class containing that constant is defined in 2 classes !!! 
>>>> (I'll start
>>>> topic on dev list about that):
>>>>
>>>> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.StyleSheetRenderer

>>>>
>>>> and
>>>> org.apache.myfaces.trinidadinternal.share.config.Configuration
>>>>
>>>> Note that both classes are in Trinidad's private API 
>>>> (trinidad-impl.jar)
>>>> though.
>>>>
>>>>
>>>> Regards,
>>>>
>>>> ~ Simon
>>>>
>>>> On 3/29/07, Chris Hane <chrishane@gmail.com> wrote:
>>>>>
>>>>> Simon,
>>>>>
>>>>> Thanks - I looked on the wiki again thinking I missed it; but it's 
>>>>> not
>>>>> there.  I would have added this; but the wiki is not editable.
>>>>>
>>>>> http://incubator.apache.org/adffaces/devguide/configuration.html#web.xml

>>>>>
>>>>>
>>>>> I haven't started to read the source yet; but for future 
>>>>> reference, what
>>>>> class did this come from?
>>>>>
>>>>> Thanks again for you help - I appreciate it,
>>>>> Chris....
>>>>>
>>>>> Simon Lessard wrote:
>>>>> > Hello Chris,
>>>>> >
>>>>> > Try to set the
>>>>> > org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION

>>>>> context
>>>>> > parameter to true while you're debugging CSS. This will generate

>>>>> only
>>>>> the
>>>>> > full version of the selectors, Here's the full doc:
>>>>> >
>>>>> >  /**
>>>>> >   * Disables optimizations that are normally performed by the
>>>>> >   * Trinidad Renderers to reduce content size.
>>>>> >   * <p>
>>>>> >   * This Boolean property controls whether or not Trinidad Renderer
>>>>> >   * implementations should attempt to reduce the size of generated
>>>>> >   * content, for example, by compressing style class names.  These
>>>>> >   * optimizations are enabled by default.  In general,
>>>>> >   * clients should not need to disable these optimizations.  
>>>>> However,
>>>>> >   * clients that want to disable this functionality for testing
or
>>>>> >   * debugging purposes can do so by setting this property to
>>>>> Boolean.TRUE.
>>>>> >   */
>>>>> >  static public final String DISABLE_CONTENT_COMPRESSION =
>>>>> >    
>>>>> "org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION";
>>>>> >
>>>>> >
>>>>> > On 3/29/07, Chris Hane <chrishane@gmail.com> wrote:
>>>>> >>
>>>>> >>
>>>>> >> Is there a way to reverse map the generated CSS (or maybe 
>>>>> generate the
>>>>> >> CSS files with better names).  For example, I have the 
>>>>> following css on
>>>>> >> an html element and am trying to track down where each of these
is
>>>>> >> defined.
>>>>> >>
>>>>> >> Not being a CSS expert it would be nice to be able even in a

>>>>> debug mode
>>>>> >> to generate the CSS elements with more descriptive names so
I can
>>>>> >> quickly see what I need to change.
>>>>> >>
>>>>> >> .xr, .xu, .x4j {MyCSS-des... (line 25)
>>>>> >>     color:#000000;
>>>>> >>     font-family:Browallia New,Arial,Helvetica,Geneva,sans-serif;
>>>>> >>     font-size:10pt;
>>>>> >>     font-weight:normal;
>>>>> >>     padding:0px 8px 0px 0px;
>>>>> >>     text-align:left;
>>>>> >> }
>>>>> >>
>>>>> >>
>>>>> >> Thanks,
>>>>> >> Chris....
>>>>> >>
>>>>> >
>>>>>
>>>>
>>>
>>
>
>

Mime
View raw message