From adffaces-issues-return-1808-apmail-incubator-adffaces-issues-archive=incubator.apache.org@incubator.apache.org Mon Feb 19 22:34:31 2007 Return-Path: Delivered-To: apmail-incubator-adffaces-issues-archive@locus.apache.org Received: (qmail 34467 invoked from network); 19 Feb 2007 22:34:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2007 22:34:28 -0000 Received: (qmail 94501 invoked by uid 500); 19 Feb 2007 22:34:36 -0000 Delivered-To: apmail-incubator-adffaces-issues-archive@incubator.apache.org Received: (qmail 94446 invoked by uid 500); 19 Feb 2007 22:34:35 -0000 Mailing-List: contact adffaces-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-issues@incubator.apache.org Delivered-To: mailing list adffaces-issues@incubator.apache.org Received: (qmail 94296 invoked by uid 99); 19 Feb 2007 22:34:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2007 14:34:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2007 14:34:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CCC947141E1 for ; Mon, 19 Feb 2007 14:34:05 -0800 (PST) Message-ID: <27261500.1171924445836.JavaMail.jira@brutus> Date: Mon, 19 Feb 2007 14:34:05 -0800 (PST) From: "Jeanne Waldman (JIRA)" To: adffaces-issues@incubator.apache.org Subject: [jira] Created: (ADFFACES-386) Add import support to skinning's css files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Add import support to skinning's css files ------------------------------------------ Key: ADFFACES-386 URL: https://issues.apache.org/jira/browse/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. See StyleSheetDocumentParser.java -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"); return; } // Now, parse the imported document StyleSheetDocument doc = null; try { doc = (StyleSheetDocument)XMLUtils.parseInclude(context, href, StyleSheetDocument.class); } catch (SAXException e) { _LOG.severe(e); } if (doc != null) { if (_imports == null) _imports = new ArrayList(); _imports.add(doc); } } 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.