You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ja...@apache.org on 2011/03/08 19:01:34 UTC

svn commit: r1079454 - in /myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main: java/org/apache/myfaces/commons/resourcehandler/AdvancedResourceHandler.java resources/ resources/META-INF/ resources/META-INF/faces-config.xml

Author: jakobk
Date: Tue Mar  8 18:01:33 2011
New Revision: 1079454

URL: http://svn.apache.org/viewvc?rev=1079454&view=rev
Log:
MFCOMMONS-29 Advanced JSF 2 ResourceHandler (add faces-config.xml to allow automatic configuration)

Added:
    myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/resources/
    myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/resources/META-INF/
    myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/resources/META-INF/faces-config.xml
Modified:
    myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/java/org/apache/myfaces/commons/resourcehandler/AdvancedResourceHandler.java

Modified: myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/java/org/apache/myfaces/commons/resourcehandler/AdvancedResourceHandler.java
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/java/org/apache/myfaces/commons/resourcehandler/AdvancedResourceHandler.java?rev=1079454&r1=1079453&r2=1079454&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/java/org/apache/myfaces/commons/resourcehandler/AdvancedResourceHandler.java (original)
+++ myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/java/org/apache/myfaces/commons/resourcehandler/AdvancedResourceHandler.java Tue Mar  8 18:01:33 2011
@@ -40,13 +40,7 @@ import javax.faces.context.FacesContext;
  * Standard features NOT available in this ResourceHandler:
  *   - Support for ValueExpressions in resource files
  *
- * Install it in faces-config.xml via:
- *
- * <application>
- *     <resource-handler>org.apache.myfaces.commons.resourcehandler.AdvancedResourceHandler</resource-handler>
- * </application>
- *
- * In addition, libraries handled by this ResourceHandler must be specified in
+ * Libraries handled by this ResourceHandler must be specified in
  * META-INF/advanced-resources.xml in the following format:
  *
  * <advanced-resources>

Added: myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/resources/META-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/resources/META-INF/faces-config.xml?rev=1079454&view=auto
==============================================================================
--- myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/resources/META-INF/faces-config.xml (added)
+++ myfaces/commons/branches/jsf_20/myfaces-commons-resourcehandler/src/main/resources/META-INF/faces-config.xml Tue Mar  8 18:01:33 2011
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
+              version="2.0">
+
+    <application>
+        <resource-handler>org.apache.myfaces.commons.resourcehandler.AdvancedResourceHandler</resource-handler>
+    </application>
+
+</faces-config>
\ No newline at end of file