Author: nbelaevski
Date: 2008-08-04 09:33:56 -0400 (Mon, 04 Aug 2008)
New Revision: 9889
Added:
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/ProducerContext.java
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java
Log:
https://jira.jboss.org/jira/browse/RF-4014
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java
===================================================================
---
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java 2008-08-04
13:33:51 UTC (rev 9888)
+++
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java 2008-08-04
13:33:56 UTC (rev 9889)
@@ -38,6 +38,5 @@
*/
public interface HeaderResourceProducer2 {
- public void encodeToHead(FacesContext context, UIComponent component,
- boolean processStyles, boolean processScripts) throws IOException;
+ public void encodeToHead(FacesContext context, UIComponent component, ProducerContext
pc) throws IOException;
}
Added: trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/ProducerContext.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/ProducerContext.java
(rev 0)
+++
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/ProducerContext.java 2008-08-04
13:33:56 UTC (rev 9889)
@@ -0,0 +1,35 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.ajax4jsf.renderkit;
+
+
+/**
+ * @author Nick Belaevski
+ * @since 3.2.2
+ */
+
+public interface ProducerContext {
+
+ public boolean isProcessStyles();
+
+ public boolean isProcessScripts();
+}