xforms:switch and xforms:case broken in nightly build for Firefox

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

xforms:switch and xforms:case broken in nightly build for Firefox

Stephen Bayliss
I'm using the nightly build Beta4 200512130507

In Firefox (1.5) I'm finding that when I use <xforms:switch> and
<xforms:case>, content within every <xforms:case> is displayed, rather
than just one.

It works fine in IE though.

An example view xhtml file to show this:

<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xi="http://www.w3.org/2003/XInclude">
       
       
    <xhtml:head>
        <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"
                xmlns:xs="http://www.w3.org/2001/XMLSchema">

            <xforms:instance id="instance">
                <instance>
                    <some-data>here</some-data>
                    <some-more-data>there</some-more-data>
                </instance>
            </xforms:instance>
        </xforms:model>
    </xhtml:head>
    <xhtml:body>
        <xforms:switch>
            <xforms:case id="first">
                <xforms:group ref="/instance">
                <xforms:input ref="some-data">
                    <xforms:label>first</xforms:label>
                </xforms:input>
                </xforms:group>
            </xforms:case>
            <xforms:case id="second">
                <xforms:group ref="/instance">
                <xforms:input ref="some-more-data">
                    <xforms:label>second</xforms:label>
                </xforms:input>
                </xforms:group>
            </xforms:case>
        </xforms:switch>
    </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: xforms:switch and xforms:case broken in nightly build for Firefox

Erik Bruchez
Administrator
Stephen,

Thanks. You probably just caught a bad build, your case below appears to
work fine now.

-Erik

Stephen Bayliss wrote:

> I'm using the nightly build Beta4 200512130507
>
> In Firefox (1.5) I'm finding that when I use <xforms:switch> and
> <xforms:case>, content within every <xforms:case> is displayed, rather
> than just one.
>
> It works fine in IE though.
>
> An example view xhtml file to show this:
>
> <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>     xmlns:xi="http://www.w3.org/2003/XInclude">
>        
>        
>     <xhtml:head>
>         <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"
>                 xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>             <xforms:instance id="instance">
>                 <instance>
>                     <some-data>here</some-data>
>                     <some-more-data>there</some-more-data>
>                 </instance>
>             </xforms:instance>
>         </xforms:model>
>     </xhtml:head>
>     <xhtml:body>
>         <xforms:switch>
>             <xforms:case id="first">
>                 <xforms:group ref="/instance">
>                 <xforms:input ref="some-data">
>                     <xforms:label>first</xforms:label>
>                 </xforms:input>
>                 </xforms:group>
>             </xforms:case>
>             <xforms:case id="second">
>                 <xforms:group ref="/instance">
>                 <xforms:input ref="some-more-data">
>                     <xforms:label>second</xforms:label>
>                 </xforms:input>
>                 </xforms:group>
>             </xforms:case>
>         </xforms:switch>
>     </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: xforms:switch and xforms:case broken in nightly build for Firefox

Stephen Bayliss
In reply to this post by Stephen Bayliss
Yes, Erik, works fine for me as well now from last night's build.

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 13 December 2005 11:29
To: [hidden email]
Subject: Re: [ops-users] xforms:switch and xforms:case broken in nightly
build for Firefox

Stephen,

Thanks. You probably just caught a bad build, your case below appears to

work fine now.

-Erik

Stephen Bayliss wrote:

> I'm using the nightly build Beta4 200512130507
>
> In Firefox (1.5) I'm finding that when I use <xforms:switch> and
> <xforms:case>, content within every <xforms:case> is displayed, rather
> than just one.
>
> It works fine in IE though.
>
> An example view xhtml file to show this:
>
> <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>     xmlns:xi="http://www.w3.org/2003/XInclude">
>        
>        
>     <xhtml:head>
>         <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"
>                 xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>             <xforms:instance id="instance">
>                 <instance>
>                     <some-data>here</some-data>
>                     <some-more-data>there</some-more-data>
>                 </instance>
>             </xforms:instance>
>         </xforms:model>
>     </xhtml:head>
>     <xhtml:body>
>         <xforms:switch>
>             <xforms:case id="first">
>                 <xforms:group ref="/instance">
>                 <xforms:input ref="some-data">
>                     <xforms:label>first</xforms:label>
>                 </xforms:input>
>                 </xforms:group>
>             </xforms:case>
>             <xforms:case id="second">
>                 <xforms:group ref="/instance">
>                 <xforms:input ref="some-more-data">
>                     <xforms:label>second</xforms:label>
>                 </xforms:input>
>                 </xforms:group>
>             </xforms:case>
>         </xforms:switch>
>     </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