[seam-commits] Seam SVN: r13559 - in modules/xml/trunk: impl/src/main/java/org/jboss/seam/xml/model and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Thu Aug 5 08:18:30 EDT 2010
Author: swd847
Date: 2010-08-05 08:18:29 -0400 (Thu, 05 Aug 2010)
New Revision: 13559
Modified:
modules/xml/trunk/examples/princess-rescue/src/main/resources/META-INF/beans.xml
modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ModelBuilder.java
Log:
fixed princess-resuce example
Modified: modules/xml/trunk/examples/princess-rescue/src/main/resources/META-INF/beans.xml
===================================================================
--- modules/xml/trunk/examples/princess-rescue/src/main/resources/META-INF/beans.xml 2010-08-05 11:55:41 UTC (rev 13558)
+++ modules/xml/trunk/examples/princess-rescue/src/main/resources/META-INF/beans.xml 2010-08-05 12:18:29 UTC (rev 13559)
@@ -2,7 +2,7 @@
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:s="urn:java:ee"
- xmlns:p="org.jboss.seam.xml.examples.princess"
+ xmlns:p="urn:java:org.jboss.seam.xml.examples.princess"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://docs.jboss.org/cdi/beans_1_0.xsd">
@@ -13,7 +13,7 @@
</p:Room>
<p:GameManager>
- <s:extends/>
+ <s:modifies/>
<p:allRooms>
<s:Any/>
<s:Inject/>
Modified: modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ModelBuilder.java
===================================================================
--- modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ModelBuilder.java 2010-08-05 11:55:41 UTC (rev 13558)
+++ modules/xml/trunk/impl/src/main/java/org/jboss/seam/xml/model/ModelBuilder.java 2010-08-05 12:18:29 UTC (rev 13559)
@@ -43,6 +43,8 @@
import org.jboss.seam.xml.parser.namespace.RootNamespaceElementResolver;
import org.jboss.seam.xml.util.TypeOccuranceInformation;
import org.jboss.seam.xml.util.XmlConfigurationException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* Builds an XML result from sax nodes
@@ -57,6 +59,8 @@
static final String BEANS_ROOT_NAMESPACE = "http://java.sun.com/xml/ns/javaee";
+ static final Logger log = LoggerFactory.getLogger(ModelBuilder.class);
+
private final XmlResult ret;
public ModelBuilder(String fileUrl)
@@ -96,7 +100,6 @@
continue;
}
XmlItem rb = resolveNode(node, null, resolvers, manager);
- // validateXmlItem(rb);
if (rb != null)
{
addNodeToResult(rb, manager);
@@ -173,6 +176,7 @@
NamespaceElementResolver resolver = resolveNamepsace(node.getNamespaceUri(), resolvers);
if (resolver == null)
{
+ log.warn("Could not resolve namspace for seam-xml: {}", node.getNamespaceUri());
return null;
}
XmlItem ret = resolver.getItemForNamespace(node, parent);
More information about the seam-commits
mailing list