Author: nbelaevski
Date: 2008-07-24 12:25:03 -0400 (Thu, 24 Jul 2008)
New Revision: 9771
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java
trunk/framework/api/src/main/java/org/ajax4jsf/resource/InternetResourceBuilder.java
Log:
https://jira.jboss.org/jira/browse/RF-3687
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java
===================================================================
---
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java 2008-07-24
15:44:47 UTC (rev 9770)
+++
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/HeaderResourceProducer2.java 2008-07-24
16:25:03 UTC (rev 9771)
@@ -24,6 +24,7 @@
import java.io.IOException;
import java.util.Set;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import org.ajax4jsf.resource.InternetResource;
@@ -35,8 +36,8 @@
* @author nbelaevski(a)exadel.com
*
*/
-public interface HeaderResourceProducer2 extends HeaderResourceProducer {
+public interface HeaderResourceProducer2 {
- public void encodeToHead(FacesContext context, boolean processStyles,
- boolean processScripts) throws IOException;
+ public void encodeToHead(FacesContext context, UIComponent component,
+ boolean processStyles, boolean processScripts) throws IOException;
}
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java
===================================================================
---
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java 2008-07-24
15:44:47 UTC (rev 9770)
+++
trunk/framework/api/src/main/java/org/ajax4jsf/renderkit/UserResourceRenderer2.java 2008-07-24
16:25:03 UTC (rev 9771)
@@ -1,7 +1,9 @@
package org.ajax4jsf.renderkit;
+import java.io.IOException;
import java.util.Set;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import org.ajax4jsf.resource.InternetResource;
@@ -14,7 +16,7 @@
* @author nbelaevski(a)exadel.com
*
*/
-public interface UserResourceRenderer2 extends UserResourceRenderer {
+public interface UserResourceRenderer2 {
- public void encodeToHead(FacesContext context);
+ public void encodeToHead(FacesContext context, UIComponent component) throws
IOException;
}
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/resource/InternetResourceBuilder.java
===================================================================
---
trunk/framework/api/src/main/java/org/ajax4jsf/resource/InternetResourceBuilder.java 2008-07-24
15:44:47 UTC (rev 9770)
+++
trunk/framework/api/src/main/java/org/ajax4jsf/resource/InternetResourceBuilder.java 2008-07-24
16:25:03 UTC (rev 9771)
@@ -197,5 +197,7 @@
super();
}
- public abstract ResourceRenderer getRenderer(String name);
+ public abstract ResourceRenderer getStyleRenderer();
+
+ public abstract ResourceRenderer getScriptRenderer();
}
\ No newline at end of file