You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org> on 2011/02/21 18:07:39 UTC

[jira] Resolved: (TRINIDAD-2041) the design time tool needs browser supported pseudo-classes to be converted like non-browser-supported pseudo-classes

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

Jeanne Waldman resolved TRINIDAD-2041.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-beta-3

> the design time tool needs browser supported pseudo-classes to be converted like non-browser-supported pseudo-classes
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2041
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2041
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>            Reporter: Jeanne Waldman
>            Assignee: Jeanne Waldman
>             Fix For: 2.0.0-beta-3
>
>
> We have an internal team creating a Skin Editor for JDeveloper. It renders a preview of the component you are skinning in its different states: read-only, visited, hover, active, etc. Some of the states are browser-supported states (hover, visited, active), and some are not (read-only).
> The Skinning Framework processes the skin file and generates a CSS-2 browser-supported css file. 
> If it sees a browser-supported pseudo-class in the selector, it passes it through to the generated CSS file. If it sees other pseudo-classes, it converts it to 'p_AF*".
> So af|inputText:read-only becomes .af_inputText.p_AFReadOnly. In the rendered html, you'll see something like <div class="af_inputText p_AFReadOnly">.
> af|commandButton:active becomes .af_commandButton:active. There is no need to convert :active because the browser knows what to do with it.
> For the Design Time Skin Editor, they render a sample of the component in the different states. It isn't a real browser, so the browser-supported states are no supported, like :hover. They need us to convert the browser supported pseudo-clases the same as other pseudo-classes when in Design Time Mode.
> This is a very simple fix in CSSGenerationUtils.java in  static private String _convertPseudoClass(String pseudoClass)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira