xxforms extensions in NG?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xxforms extensions in NG?

Oliver Charlet
Hi again,

I have a problem using the xxforms:choose tag inside a switch.
Are the xxforms: extension still usable? I didn't find anything in the
docs, that tell me so.
So if they are, I attached a very simple form, that does not render.
Again I get a NPE.
I am missing something.... again?

--
-----------------------
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"
        xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
 <xhtml:head>
  <xhtml:title>Test</xhtml:title>
  <xforms:model id="main-model">
   <xforms:instance id="main-no-ns" xmlns="">
           <test>
                   <choice test=""/>
           </test>
   </xforms:instance>

  </xforms:model>
 </xhtml:head>
 <xhtml:body>
  <xhtml:h3>Test</xhtml:h3>

        <xforms:switch>
                <xforms:case id="a">
                        <xforms:output value="'in case a'"/>
                </xforms:case>
                <xforms:case id="b">
                        <xforms:output value="'in case b'"/>
                        <!--xxforms:choose >
                                <xxforms:when test="true()">
                                        <xforms:output value="'This does not work if uncommented'"/>
                                </xxforms:when>
                        </xxforms:choose-->
                </xforms:case>
        </xforms:switch>
         
                        <xxforms:choose >
                                <xxforms:when test="true()">
                                        <xforms:output value="'This works'"/>
                                </xxforms:when>
                        </xxforms:choose>
         
 </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
Reply | Threaded
Open this post in threaded view
|

Re: xxforms extensions in NG?

Erik Bruchez
Administrator
Oliver,

See my reply in the other thread. OPS now throws an exception if you use
xxforms:choose (and other non-supported xxforms:* elements) when using
XForms NG. This has also been added to the list of changes.

-Erik

Oliver Charlet wrote:
> Hi again,
>
> I have a problem using the xxforms:choose tag inside a switch.
> Are the xxforms: extension still usable? I didn't find anything in the
> docs, that tell me so.
> So if they are, I attached a very simple form, that does not render.
> Again I get a NPE.
> I am missing something.... again?



--
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