https://java.net/jira/browse/JAVASERVERFACES-3480, Fix StateContext to correctly pass parent to childAddedToSameParentAsBefore

git-svn-id: https://svn.java.net/svn/mojarra~svn@13741 761efcf2-d34d-6b61-9145-99dcacc3edf1
http://java.net/jira/browse/JAVASERVERFACES-3483


SECTION: Modified Files
----------------------------
M       jsf-ri/src/main/java/com/sun/faces/config/configprovider/MetaInfFaceletTaglibraryConfigProvider.java

- Replace spaces with %20s.

M       jsf-ri/src/main/java/com/sun/faces/config/configprovider/MetaInfFacesConfigResourceProvider.java

- Introduce a constant

+    private static final String FACES_CONFIG_EXTENSION = 
+            ".faces-config.xml";

- Use the constant

-            URL [] urlArray = Classpath.search("META-INF/", ".faces-config.xml");
+            URL [] urlArray = Classpath.search("META-INF/", FACES_CONFIG_EXTENSION);

- here is an additional bug I'm fixing with this commit

-                    if (p.endsWith(".taglib.xml")) {
+                    if (p.endsWith(FACES_CONFIG_EXTENSION)) {

  We should not be picking up .taglib.xml files in this list.  Doing so
  would cause problems because everything we pick up in this list is
  parsed as a faces-config file.  Trying to parse a faces-config file as
  a .taglib.xml file would fail and cause non-deployment.

A       test/agnostic/facelets/cc/src/main/webapp/WEB-INF/classes
A       test/agnostic/facelets/cc/src/main/webapp/WEB-INF/classes/META-INF
A       test/agnostic/facelets/cc/src/main/webapp/WEB-INF/classes/META-INF/taglib with spaces in name.taglib.xml

- test fodder, only to exercise deployment-time code.

A       test/agnostic/facelets/cc/src/main/webapp/WEB-INF/classes/META-INF/spaceInName.xhtml

- test fodder, not actually used.




git-svn-id: https://svn.java.net/svn/mojarra~svn@13742 761efcf2-d34d-6b61-9145-99dcacc3edf1
Fixes https://java.net/jira/browse/JAVASERVERFACES-3481, Fix StateContext to correctly pass parent to childAddedToSameParentAsBefore (2.2.x port)

git-svn-id: https://svn.java.net/svn/mojarra~svn@13743 761efcf2-d34d-6b61-9145-99dcacc3edf1