I hope I don't get on your nerves, but I found another error.
sample is attached. I get a NPE:
-- ----------------------- oliver charlet software development 11-041 Olsztyn, Poland [hidden email] ----------------------- <?xml version="1.0" encoding="UTF-8"?> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" > <xhtml:head> <xhtml:title>Test item and itemset in select1</xhtml:title> <xforms:model id="main-model"> <xforms:instance id="main-no-ns" xmlns=""> <test> <choice test=""/> </test> </xforms:instance> <xforms:instance id="list-no-ns" xmlns=""> <root> <entities> <entity> <id>1</id> <name>first</name> </entity> <entity> <id>2</id> <name>second</name> </entity> <entity> <id>3</id> <name>third</name> </entity> </entities> </root> </xforms:instance> </xforms:model> </xhtml:head> <xhtml:body> <xhtml:h3>Test item and itemset in select1</xhtml:h3> <!--xforms:group ref="instance('main-no-ns')"--> <xforms:group> <xhtml:table> <xhtml:tr> <xhtml:td>both without namespace:</xhtml:td> <xhtml:td> <xxforms:choose xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <xxforms:when test="count(instance('list-no-ns')/entities/entity) = 1"> <xforms:select1 ref="instance('main-no-ns')/choice/@test"> <xforms:item> <xforms:label>- - no choice - -</xforms:label> <xforms:value></xforms:value> </xforms:item> <xforms:itemset nodeset="instance('list-no-ns')/entities/entity"> <xforms:label ref="name"/> <xforms:value ref="id"/> </xforms:itemset> </xforms:select1> </xxforms:when> <xxforms:otherwise> <xforms:select1 ref="instance('main-no-ns')/choice/@test" appearance="full"> <xforms:item> <xforms:label>- - no choice - -</xforms:label> <xforms:value></xforms:value> </xforms:item> <xforms:itemset nodeset="instance('list-no-ns')/entities/entity"> <xforms:label ref="name"/> <xforms:value ref="id"/> </xforms:itemset> </xforms:select1> </xxforms:otherwise> </xxforms:choose> </xhtml:td> </xhtml:tr> </xhtml:table> </xforms:group> </xhtml:body> </xhtml:html> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Oliver,
xxforms:choose is actually deprecated with XForms NG, as you can obtain the same results with standard XForms constructs: xforms:group/@ref or xforms:switch. -Erik Oliver Charlet wrote: > I hope I don't get on your nerves, but I found another error. > sample is attached. > > I get a NPE: > > Exception Class java.lang.NullPointerException > Message > Servlet Stack Trace > (161 method calls) > Class Name Method Name File Name Line Number > org.orbeon.oxf.xforms.processor.handlers.XFormsSelect1Handler > startElement XFormsSelect1Handler.java 92 > org.orbeon.oxf.xml.ForwardingContentHandler startElement > ForwardingContentHandler.java 87 > org.orbeon.oxf.xml.ElementHandlerController startElement > ElementHandlerController.java 146 > org.orbeon.oxf.xml.SAXStore replay SAXStore.java 162 > org.orbeon.oxf.processor.pipeline.TeeProcessor$1 readImpl > TeeProcessor.java 59 > org.orbeon.oxf.processor.ProcessorImpl$6 read ProcessorImpl.java 987 > org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read > ProcessorImpl.java 1170 > org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX > ProcessorImpl.java 349 > org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX > ProcessorImpl.java 354 > org.orbeon.oxf.xforms.processor.XFormsToXHTML outputResponse > XFormsToXHTML.java 190 > > > -- > ----------------------- > oliver charlet > software development > > 11-041 Olsztyn, Poland > > [hidden email] > ----------------------- > > > ------------------------------------------------------------------------ > > <?xml version="1.0" encoding="UTF-8"?> > <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" > > <xhtml:head> > <xhtml:title>Test item and itemset in select1</xhtml:title> > <xforms:model id="main-model"> > <xforms:instance id="main-no-ns" xmlns=""> > <test> > <choice test=""/> > </test> > </xforms:instance> > > <xforms:instance id="list-no-ns" xmlns=""> > <root> > <entities> > <entity> > <id>1</id> > <name>first</name> > </entity> > <entity> > <id>2</id> > <name>second</name> > </entity> > <entity> > <id>3</id> > <name>third</name> > </entity> > </entities> > </root> > </xforms:instance> > </xforms:model> > </xhtml:head> > <xhtml:body> > <xhtml:h3>Test item and itemset in select1</xhtml:h3> > <!--xforms:group ref="instance('main-no-ns')"--> > <xforms:group> > <xhtml:table> > <xhtml:tr> > <xhtml:td>both without namespace:</xhtml:td> > <xhtml:td> > <xxforms:choose xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> > <xxforms:when test="count(instance('list-no-ns')/entities/entity) = 1"> > <xforms:select1 ref="instance('main-no-ns')/choice/@test"> > <xforms:item> > <xforms:label>- - no choice - -</xforms:label> > <xforms:value></xforms:value> > </xforms:item> > <xforms:itemset nodeset="instance('list-no-ns')/entities/entity"> > <xforms:label ref="name"/> > <xforms:value ref="id"/> > </xforms:itemset> > </xforms:select1> > </xxforms:when> > <xxforms:otherwise> > <xforms:select1 ref="instance('main-no-ns')/choice/@test" appearance="full"> > <xforms:item> > <xforms:label>- - no choice - -</xforms:label> > <xforms:value></xforms:value> > </xforms:item> > <xforms:itemset nodeset="instance('list-no-ns')/entities/entity"> > <xforms:label ref="name"/> > <xforms:value ref="id"/> > </xforms:itemset> > </xforms:select1> > </xxforms:otherwise> > </xxforms:choose> > </xhtml:td> > </xhtml:tr> > </xhtml:table> > </xforms:group> > > </xhtml:body> > </xhtml:html> > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
thanks,
that make my last post obsolete, too. Erik Bruchez schrieb: Oliver, -- ----------------------- oliver charlet software development 11-041 Olsztyn, Poland [hidden email] ----------------------- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |