incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeanne Waldman (JIRA)" <>
Subject [jira] Created: (ADFFACES-386) Add import support to skinning's css files
Date Mon, 19 Feb 2007 22:34:05 GMT
Add import support to skinning's css files

                 Key: ADFFACES-386
             Project: MyFaces ADF-Faces
          Issue Type: Improvement
          Components: Skinning
            Reporter: Jeanne Waldman
            Priority: Minor

Add @import support to the skinning's css file. It should behave exactly the same as the include
support that we have in the XSS files.

Here are some code snippets where the import happens.

-An included xss file is parsed in _handleImports and stored as a StyleSheetDocument in "_imports"
that is an Arraylist of elements of type StyleSheetDocument. 
  // Handle an import - parse the imported XSS document
  private void _handleImport(
    ParseContext context,
    String href
    ) throws SAXParseException, IOException
    if (href == null)
      _LOG.warning("Import missing required href attribute");
    // Now, parse the imported document
    StyleSheetDocument doc = null;
      doc = (StyleSheetDocument)XMLUtils.parseInclude(context,
    catch (SAXException e)
    if (doc != null)
      if (_imports == null)
        _imports = new ArrayList<StyleSheetDocument>();

And also this:
  // Return all style sheet nodes - this includes imported style sheets
  // as well as style sheets from this document.  Imported style
  // sheets have lower precedence - they come first.
  private StyleSheetNode[] _getStyleSheets()

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

View raw message