[
https://issues.apache.org/jira/browse/TRINIDAD-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13762989#comment-13762989
]
Anand V Nath commented on TRINIDAD-2414:
----------------------------------------
The issue here is the usage of Skin framework API. Any component that renders
selectors needs to use the following API to get the styles before rendering.
/**
* Get a styleClass given a styleClass. With other information that is on
* the RenderingContext, the styleClass may be transformed.
* For example, you might want to return a compressed styleclass
* given the full styleClass.
* e.g., getStyleClass("SomLongName") could return "x1"
* You should always run your styleClass through this method before rendering
* it out.
* @param styleClass the styleClass name that you want to render
* @return the StyleClass that may be the given styleClass transformed to
* be suitable for this rendering context.
*/
abstract public String getStyleClass(String styleClass);
The non namespaced selectors which are rendered compressed can thus be
translated to compressed ones using this API. So it is not a requirement to
render non namespaced selectors as uncompressed with compression turned on. If
I come across a usecase which compels us to implement it, I will revisit it at
that time. Closing this bug for now.
> non namespaced selectors are getting compressed with skin compression turned
> on
> -------------------------------------------------------------------------------
>
> Key: TRINIDAD-2414
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2414
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Skinning
> Affects Versions: 2.1.0-core
> Reporter: Anand V Nath
> Attachments: jira-2414.patch
>
>
> Selectors such as:
> .AFSelector { ... }
> was getting rendered in both compressed and uncompressed way with compression
> turned on.
> But this was not happening for
> .AFSelector af|foo { ... }
> af|foo.AFSelector { ... }
> This was rendered as compressed with compression turned on.
> The solution is to render the non namespaced selectors only in un compressed
> format.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira