You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Anand V Nath (Created) (JIRA)" <de...@myfaces.apache.org> on 2011/11/09 13:08:51 UTC

[jira] [Created] (TRINIDAD-2159) Introduce new API to parse skin files at run time.

Introduce new API to parse skin files at run time.
--------------------------------------------------

                 Key: TRINIDAD-2159
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
             Project: MyFaces Trinidad
          Issue Type: New Feature
          Components: Skinning
            Reporter: Anand V Nath


Currently there is no public API for obtaining a parsed format of a Skin file other than that is used by the application. Applications that need to parse any skin file, can make use of this API.

Proposed API is 
public static org.apache.myfaces.trinidad.style.Styles parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext context)

The context for parsing is provided by org.apache.myfaces.trinidad.style.SkinParsingContext

public abstract class SkinParsingContext {
  public abstract Agent getAgent();
  public AccessibilityProfile getAccessibilityProfile(); // provide default implementation
  public Locale getLocale(); // provide default implementation
}

Using this API skin files can be parsed to obtain org.apache.myfaces.trinidad.style.Styles object.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TRINIDAD-2159) Introduce new API to parse skin files at run time.

Posted by "Anand V Nath (Updated) (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anand V Nath updated TRINIDAD-2159:
-----------------------------------

    Status: Patch Available  (was: Open)
    
> Introduce new API to parse skin files at run time.
> --------------------------------------------------
>
>                 Key: TRINIDAD-2159
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>            Reporter: Anand V Nath
>         Attachments: jira-2159-nov-09.patch
>
>
> Currently there is no public API for obtaining a parsed format of a Skin file other than that is used by the application. Applications that need to parse any skin file, can make use of this API.
> Proposed API is 
> public static org.apache.myfaces.trinidad.style.Styles parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext context)
> The context for parsing is provided by org.apache.myfaces.trinidad.style.SkinParsingContext
> public abstract class SkinParsingContext {
>   public abstract Agent getAgent();
>   public AccessibilityProfile getAccessibilityProfile(); // provide default implementation
>   public Locale getLocale(); // provide default implementation
> }
> Using this API skin files can be parsed to obtain org.apache.myfaces.trinidad.style.Styles object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TRINIDAD-2159) Introduce new API to parse skin files at run time.

Posted by "Anand V Nath (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146999#comment-13146999 ] 

Anand V Nath commented on TRINIDAD-2159:
----------------------------------------

patch with 'ASF Granted License' uploaded.
                
> Introduce new API to parse skin files at run time.
> --------------------------------------------------
>
>                 Key: TRINIDAD-2159
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>            Reporter: Anand V Nath
>         Attachments: jira-2159-nov-09-2011.patch, jira-2159-nov-09.patch
>
>
> Currently there is no public API for obtaining a parsed format of a Skin file other than that is used by the application. Applications that need to parse any skin file, can make use of this API.
> Proposed API is 
> public static org.apache.myfaces.trinidad.style.Styles parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext context)
> The context for parsing is provided by org.apache.myfaces.trinidad.style.SkinParsingContext
> public abstract class SkinParsingContext {
>   public abstract Agent getAgent();
>   public AccessibilityProfile getAccessibilityProfile(); // provide default implementation
>   public Locale getLocale(); // provide default implementation
> }
> Using this API skin files can be parsed to obtain org.apache.myfaces.trinidad.style.Styles object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TRINIDAD-2159) Introduce new API to parse skin files at run time.

Posted by "Anand V Nath (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146979#comment-13146979 ] 

Anand V Nath commented on TRINIDAD-2159:
----------------------------------------

jira-2159-nov-09.patch contains the changes for this. Please review and commit.
                
> Introduce new API to parse skin files at run time.
> --------------------------------------------------
>
>                 Key: TRINIDAD-2159
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>            Reporter: Anand V Nath
>         Attachments: jira-2159-nov-09.patch
>
>
> Currently there is no public API for obtaining a parsed format of a Skin file other than that is used by the application. Applications that need to parse any skin file, can make use of this API.
> Proposed API is 
> public static org.apache.myfaces.trinidad.style.Styles parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext context)
> The context for parsing is provided by org.apache.myfaces.trinidad.style.SkinParsingContext
> public abstract class SkinParsingContext {
>   public abstract Agent getAgent();
>   public AccessibilityProfile getAccessibilityProfile(); // provide default implementation
>   public Locale getLocale(); // provide default implementation
> }
> Using this API skin files can be parsed to obtain org.apache.myfaces.trinidad.style.Styles object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TRINIDAD-2159) Introduce new API to parse skin files at run time.

Posted by "Anand V Nath (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147484#comment-13147484 ] 

Anand V Nath commented on TRINIDAD-2159:
----------------------------------------

Patch cancelled. Will updated with new patch.
                
> Introduce new API to parse skin files at run time.
> --------------------------------------------------
>
>                 Key: TRINIDAD-2159
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>            Reporter: Anand V Nath
>         Attachments: jira-2159-nov-09-2011.patch, jira-2159-nov-09.patch
>
>
> Currently there is no public API for obtaining a parsed format of a Skin file other than that is used by the application. Applications that need to parse any skin file, can make use of this API.
> Proposed API is 
> public static org.apache.myfaces.trinidad.style.Styles parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext context)
> The context for parsing is provided by org.apache.myfaces.trinidad.style.SkinParsingContext
> public abstract class SkinParsingContext {
>   public abstract Agent getAgent();
>   public AccessibilityProfile getAccessibilityProfile(); // provide default implementation
>   public Locale getLocale(); // provide default implementation
> }
> Using this API skin files can be parsed to obtain org.apache.myfaces.trinidad.style.Styles object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TRINIDAD-2159) Introduce new API to parse skin files at run time.

Posted by "Bernd Bohmann (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146993#comment-13146993 ] 

Bernd Bohmann commented on TRINIDAD-2159:
-----------------------------------------

Please add the patch with 'ASF Granted License' selected. This should also done for TRINIDAD-2111, TRINIDAD-1926. Thanks
                
> Introduce new API to parse skin files at run time.
> --------------------------------------------------
>
>                 Key: TRINIDAD-2159
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>            Reporter: Anand V Nath
>         Attachments: jira-2159-nov-09.patch
>
>
> Currently there is no public API for obtaining a parsed format of a Skin file other than that is used by the application. Applications that need to parse any skin file, can make use of this API.
> Proposed API is 
> public static org.apache.myfaces.trinidad.style.Styles parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext context)
> The context for parsing is provided by org.apache.myfaces.trinidad.style.SkinParsingContext
> public abstract class SkinParsingContext {
>   public abstract Agent getAgent();
>   public AccessibilityProfile getAccessibilityProfile(); // provide default implementation
>   public Locale getLocale(); // provide default implementation
> }
> Using this API skin files can be parsed to obtain org.apache.myfaces.trinidad.style.Styles object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TRINIDAD-2159) Introduce new API to parse skin files at run time.

Posted by "Anand V Nath (Updated) (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anand V Nath updated TRINIDAD-2159:
-----------------------------------

    Status: Patch Available  (was: Open)
    
> Introduce new API to parse skin files at run time.
> --------------------------------------------------
>
>                 Key: TRINIDAD-2159
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>            Reporter: Anand V Nath
>         Attachments: jira-2159-nov-09.patch
>
>
> Currently there is no public API for obtaining a parsed format of a Skin file other than that is used by the application. Applications that need to parse any skin file, can make use of this API.
> Proposed API is 
> public static org.apache.myfaces.trinidad.style.Styles parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext context)
> The context for parsing is provided by org.apache.myfaces.trinidad.style.SkinParsingContext
> public abstract class SkinParsingContext {
>   public abstract Agent getAgent();
>   public AccessibilityProfile getAccessibilityProfile(); // provide default implementation
>   public Locale getLocale(); // provide default implementation
> }
> Using this API skin files can be parsed to obtain org.apache.myfaces.trinidad.style.Styles object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TRINIDAD-2159) Introduce new API to parse skin files at run time.

Posted by "Anand V Nath (Updated) (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anand V Nath updated TRINIDAD-2159:
-----------------------------------

    Status: Open  (was: Patch Available)
    
> Introduce new API to parse skin files at run time.
> --------------------------------------------------
>
>                 Key: TRINIDAD-2159
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>            Reporter: Anand V Nath
>         Attachments: jira-2159-nov-09.patch
>
>
> Currently there is no public API for obtaining a parsed format of a Skin file other than that is used by the application. Applications that need to parse any skin file, can make use of this API.
> Proposed API is 
> public static org.apache.myfaces.trinidad.style.Styles parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext context)
> The context for parsing is provided by org.apache.myfaces.trinidad.style.SkinParsingContext
> public abstract class SkinParsingContext {
>   public abstract Agent getAgent();
>   public AccessibilityProfile getAccessibilityProfile(); // provide default implementation
>   public Locale getLocale(); // provide default implementation
> }
> Using this API skin files can be parsed to obtain org.apache.myfaces.trinidad.style.Styles object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TRINIDAD-2159) Introduce new API to parse skin files at run time.

Posted by "Anand V Nath (Updated) (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anand V Nath updated TRINIDAD-2159:
-----------------------------------

    Status: Open  (was: Patch Available)
    
> Introduce new API to parse skin files at run time.
> --------------------------------------------------
>
>                 Key: TRINIDAD-2159
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>            Reporter: Anand V Nath
>         Attachments: jira-2159-nov-09-2011.patch, jira-2159-nov-09.patch
>
>
> Currently there is no public API for obtaining a parsed format of a Skin file other than that is used by the application. Applications that need to parse any skin file, can make use of this API.
> Proposed API is 
> public static org.apache.myfaces.trinidad.style.Styles parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext context)
> The context for parsing is provided by org.apache.myfaces.trinidad.style.SkinParsingContext
> public abstract class SkinParsingContext {
>   public abstract Agent getAgent();
>   public AccessibilityProfile getAccessibilityProfile(); // provide default implementation
>   public Locale getLocale(); // provide default implementation
> }
> Using this API skin files can be parsed to obtain org.apache.myfaces.trinidad.style.Styles object.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira