Hey all,
| when I use the following simple form:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xf:form xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
xmlns:xf="http://apache.org/cocoon/xmlform/1.0"
id="users-form" view="find-users-result" action="users-form">
<xf:repeat nodeset="results" class="record-table-style">
<xf:output ref="username" class="record-table-style" action-link="edit-user"/>
</xf:repeat>
</xf:form>
I get the following exception (The XMLFormTransformer: class is the same as the cocoon one, but with more debug)
Caused by: java.lang.NullPointerException
at org.apache.cocoon.components.sax.XMLByteStreamCompiler.writeString(XMLByteStreamCompiler.java:286)
at org.apache.cocoon.components.sax.XMLByteStreamCompiler.startElement(XMLByteStreamCompiler.java:155)
at org.apache.cocoon.components.profiler.ProfilingXMLPipe.startElement(ProfilingXMLPipe.java:156)
at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:130)
at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:337)
at com.moondance.webapp.transformation.XMLFormTransformer.startTransformingElement(XMLFormTransformer.java:501)
at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:330)
at com.moondance.webapp.transformation.XMLFormTransformer.unrollRepeatTag(XMLFormTransformer.java:1001)
at com.moondance.webapp.transformation.XMLFormTransformer.endTransformingElement(XMLFormTransformer.java:881)
at org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractSAXTransformer.java:355)
It appears as though the URI field in the group attribute is null.
if I change the following line in XMLFormTransform (in unrollRepeatTag):
atts.addAttribute(null, TAG_COMMON_ATTR_REF,
TAG_COMMON_ATTR_REF, "CDATA",
nextNodeLocation);
to
atts.addAttribute(NS, TAG_COMMON_ATTR_REF,
TAG_COMMON_ATTR_REF, "CDATA",
nextNodeLocation);
it works fine.
The examples seem to work as is, which I don't get. What am I doing wrong?
Mark
- FOM implementation Christopher Oliver
- Re: FOM implementation Upayavira
- Re: FOM implementation Mark Miller
- Re: FOM implementation Christopher Oliver
- Re: FOM implementation Stefano Mazzocchi
- Re: FOM implementation Pier Fumagalli
- RE: FOM implementation Reinhard Pötz
- Re: FOM implementation Stefano Mazzocchi
- Re: FOM implementation Geoff Howard
- Re: FOM implementation Stefano Mazzocchi