[ 
https://issues.apache.org/jira/browse/TRINIDAD-555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Winer resolved TRINIDAD-555.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.3-core

A public config parameter was added (see the configuration chapter of the 
developer's guide).

> add public api to turn styleclass compression off for debugging
> ---------------------------------------------------------------
>
>                 Key: TRINIDAD-555
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-555
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Skinning
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Jeanne Waldman
>            Priority: Minor
>             Fix For: 1.0.3-core
>
>
> People need to be able to debug skins. They can do this using Firebug, but 
> our styleclasses are compressed by default, so it is hard to figure out which 
> skin key they map to. When we wrote out both compressed and uncompressed 
> styleclasses to the generated stylesheet it was easier, but now we only 
> render the compressed styleclasses, so it is hard.
> This is a question from a user that illustrates this problem:
> 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; 
> The way to disable the styleclass compression currently is by doing this in 
> your web.xml file:
>   <context-param>
>    
> <param-name>org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION</param-name>
>    <param-value>true</param-value>
>   </context-param>
> I consider this a 'private' api and I don't like to suggest it to end users, 
> but I have to because there is no other way.
> I think that a public api to do this when  trinidad-config.xml's   
> <debug-output>true</debug-output> is set would be great.
> We'll have to discuss whether or not this is a good idea or if there is a 
> better idea.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to