Multiple Models

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

Multiple Models

rowan.crawford
I've been unable to get multiple models to work.

From experimentation it appears that the first model is the operational; the second is not.

I may well be missing something. Here is the test file I used in the sandbox:

<xh:html xmlns:x="http://www.w3.org/2002/xforms" xmlns:xh="http://www.w3.org/1999/xhtml">
        <xh:head>
                <x:model id="first">
                        <x:instance id="f1" xmlns="">
                                <help>one</help>
                        </x:instance>
                </x:model>
                <x:model id="second">
                        <x:instance id="s1" xmlns="">
                                <help>two</help>
                        </x:instance>
                </x:model>
        </xh:head>
        <xh:body>
                <x:group>
                        <xh:div>
                                First model: <x:output model="first" ref="instance('f1')"/>
                        </xh:div>
                        <xh:div>
                                Second model: <x:output model="second" ref="instance('s1')"/>
                        </xh:div>
                       
                </x:group>
        </xh:body>
</xh:html>


cheers,
rowan



--
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: Multiple Models

Erik Bruchez
Administrator
Rowan,

You just hit a bug related to how the instance() function works when
multiple models are involved:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=305500&group_id=168&atid=350207

The good news is that this is now fixed.

-Erik

[hidden email] wrote:

> I've been unable to get multiple models to work.
>
> From experimentation it appears that the first model is the operational; the second is not.
>
> I may well be missing something. Here is the test file I used in the sandbox:
>
> <xh:html xmlns:x="http://www.w3.org/2002/xforms" xmlns:xh="http://www.w3.org/1999/xhtml">
> <xh:head>
> <x:model id="first">
> <x:instance id="f1" xmlns="">
> <help>one</help>
> </x:instance>
> </x:model>
> <x:model id="second">
> <x:instance id="s1" xmlns="">
> <help>two</help>
> </x:instance>
> </x:model>
> </xh:head>
> <xh:body>
> <x:group>
> <xh:div>
> First model: <x:output model="first" ref="instance('f1')"/>
> </xh:div>
> <xh:div>
> Second model: <x:output model="second" ref="instance('s1')"/>
> </xh:div>
>
> </x:group>
> </xh:body>
> </xh:html>
>
>
> cheers,
> rowan
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



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