Enabled textContent reading and tests for DynamicElement.  There is still a write bug outstanding on the textContent.
diff --git a/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/read/ReadExtensionDataTestCase.java b/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/read/ReadExtensionDataTestCase.java
index da7ac63..692234f 100644
--- a/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/read/ReadExtensionDataTestCase.java
+++ b/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/read/ReadExtensionDataTestCase.java
@@ -57,12 +57,12 @@
             DynamicElement firstChild = 
                 (DynamicElement) singleRoot.getChildNodes().get(0);
             assertEquals("first-child", firstChild.getName());
-//            assertEquals("someData", firstChild.getTextContent());
+            assertEquals("someData", firstChild.getTextContent());
             
             DynamicElement secondChild =
                 (DynamicElement) singleRoot.getChildNodes().get(1);
             assertEquals("second-child", secondChild.getName());
-//            assertEquals("second Child's data", secondChild.getTextContent());            
+            assertEquals("second Child's data", secondChild.getTextContent());            
         } finally {
             if (edit != null) {
                 edit.dispose();
diff --git a/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/write/FacesConfigExtensionTestCase.java b/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/write/FacesConfigExtensionTestCase.java
index 2a319dc..dc07608 100644
--- a/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/write/FacesConfigExtensionTestCase.java
+++ b/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/write/FacesConfigExtensionTestCase.java
@@ -6,12 +6,9 @@
 import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage;
 import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigType;
 import org.eclipse.jst.jsf.facesconfig.tests.util.CommonStructuresUtil;
-import org.eclipse.jst.jsf.facesconfig.tests.util.FacesConfigModelUtil;
 import org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit;
 
 public class FacesConfigExtensionTestCase extends BaseWriteTestCase {
-    private final static String EXTENDED_FACES_CONFIG_ID = "extended-faces-config-id";
-
     private static final String FACES_CONFIG = "faces-config";
 
     private final static String FACES_CONFIG_EXTENSION = CommonStructuresUtil
@@ -32,8 +29,6 @@
         assertEquals("1.2", _facesVersion);
     }
 
-
-
     public void testFacesConfigExtension() {
         FacesConfigArtifactEdit edit = null;
 
diff --git a/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/write/WriteComponentExtensionDataTestCase.java b/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/write/WriteComponentExtensionDataTestCase.java
index 81c45e5..88257a9 100644
--- a/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/write/WriteComponentExtensionDataTestCase.java
+++ b/jsf/tests/org.eclipse.jst.jsf.facesconfig.tests/src/org/eclipse/jst/jsf/facesconfig/tests/write/WriteComponentExtensionDataTestCase.java
@@ -1,18 +1,16 @@
 package org.eclipse.jst.jsf.facesconfig.tests.write;
 
 import org.eclipse.jst.jsf.facesconfig.emf.ComponentClassType;
-import org.eclipse.jst.jsf.facesconfig.emf.ComponentExtensionType;
 import org.eclipse.jst.jsf.facesconfig.emf.ComponentType;
 import org.eclipse.jst.jsf.facesconfig.emf.ComponentTypeType;
-import org.eclipse.jst.jsf.facesconfig.emf.DynamicAttribute;
-import org.eclipse.jst.jsf.facesconfig.emf.DynamicElement;
 import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigFactory;
 import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage;
 import org.eclipse.jst.jsf.facesconfig.tests.util.CommonStructuresUtil;
+import org.eclipse.jst.jsf.facesconfig.tests.util.FacesConfigModelUtil;
 import org.eclipse.jst.jsf.facesconfig.util.FacesConfigArtifactEdit;
 
 public class WriteComponentExtensionDataTestCase extends BaseWriteTestCase {
-    private static final String COMPONENT = "component";
+    private static final String COMPONENT_ID = "component1";
     
     private static final String COMPONENT_CLASS = "component-class";
 
@@ -28,14 +26,18 @@
         FacesConfigArtifactEdit edit = null;
         try 
         {
-            edit = getArtifactEditForWrite();
+            edit = FacesConfigArtifactEdit
+                .getFacesConfigArtifactEditForWrite(project, "WEB-INF/faces-config-ext-data1.xml");
+            assertNotNull(edit);
             assertNotNull(edit.getFacesConfig());
             FacesConfigPackage facesConfigPackage = FacesConfigPackage.eINSTANCE;
             FacesConfigFactory facesConfigFactory = facesConfigPackage
                     .getFacesConfigFactory();
 
-            ComponentType newComponent = facesConfigFactory
-                    .createComponentType();
+            ComponentType newComponent = 
+                (ComponentType) FacesConfigModelUtil
+                    .findEObjectElementById(edit.getFacesConfig()
+                            .getComponent(), COMPONENT_ID);
 
             {
                 ComponentTypeType componentTypeType = facesConfigFactory.createComponentTypeType();
@@ -53,28 +55,28 @@
                 newComponent.setComponentClass(componentClassType);
             }
             
-            ComponentExtensionType extType =
-                facesConfigFactory.createComponentExtensionType();
-            extType.setId(CommonStructuresUtil.createPreficedString(COMPONENT, "extension-id"));
-            
-            DynamicElement singleRoot = facesConfigFactory.createDynamicElement();
-            singleRoot.setName("any-data");
-            DynamicAttribute attribute = facesConfigFactory.createDynamicAttribute();
-            attribute.setName("some-attribute");
-            attribute.setValue("some-value");
-            singleRoot.getAttributes().add(attribute);
-            
-            DynamicElement firstChild = facesConfigFactory.createDynamicElement();
-            firstChild.setName("first-child");
-            singleRoot.getChildNodes().add(firstChild);
-            
-            DynamicElement secondChild =
-                facesConfigFactory.createDynamicElement();
-            secondChild.setName("second-child");
-            //secondChild.setTextContent("secondChild text content");
-            singleRoot.getChildNodes().add(secondChild);
-            extType.getChildNodes().add(singleRoot);
-            newComponent.getComponentExtension().add(extType);
+//            ComponentExtensionType extType =
+//                facesConfigFactory.createComponentExtensionType();
+//            extType.setId(CommonStructuresUtil.createPreficedString(COMPONENT, "extension-id"));
+//            
+//            DynamicElement singleRoot = facesConfigFactory.createDynamicElement();
+//            singleRoot.setName("any-data");
+//            DynamicAttribute attribute = facesConfigFactory.createDynamicAttribute();
+//            attribute.setName("some-attribute");
+//            attribute.setValue("some-value");
+//            singleRoot.getAttributes().add(attribute);
+//            
+//            DynamicElement firstChild = facesConfigFactory.createDynamicElement();
+//            firstChild.setName("first-child");
+//            singleRoot.getChildNodes().add(firstChild);
+//            
+//            DynamicElement secondChild =
+//                facesConfigFactory.createDynamicElement();
+//            secondChild.setName("second-child");
+//            //secondChild.setTextContent("secondChild text content");
+//            singleRoot.getChildNodes().add(secondChild);
+//            extType.getChildNodes().add(singleRoot);
+//            newComponent.getComponentExtension().add(extType);
             
             edit.getFacesConfig().getComponent().add(newComponent);
             edit.save(null);