Repeat child::*

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

Repeat child::*

maalej
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Repeat child::*

Erik Bruchez
Administrator
Mmh, I am pretty sure that repeats work in general.

What version of Orbeon Forms and which browser are you using? Do you
have nested HTML elements within the repeat? can you provide a
reproducible case?

-Erik

On Sun, Jun 3, 2012 at 7:42 AM, maalej <[hidden email]> wrote:

> Hi,
>
> i have a repeat about all childs of Element X.
> <xforms:repeat nodeset="./*">
>       <xforms:group ref="self::e101">
>       .......
>       <xforms:group ref="self::e102">
>       .......
>
> Error of Orbeon:
> Exception in client-side code.
>    Message: cursor is null
>    File:
> http://localhost:8080/orbeon/xforms-server/orbeon-989e5dc65fbc1e4e6e17606734ac9b25779353fa.js
>    Line number: 129
>
> any idea....
> Thanks,
> Maalej
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Repeat-child-tp4655182.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Repeat child::*

maalej
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Repeat child::*

Erik Bruchez
Administrator
That's what I thought :)

In your example, you have nested HTML <p> elements. When you do that
browsers, move around HTML elements. So what the server things the
markup is becomes different from what the client DOM is.

Simply replace your nested <p> elements with something else, for example <span>.

-Erik

On Fri, Jun 8, 2012 at 3:28 AM, maalej <[hidden email]> wrote:

> Hi,
>
> Orbeon Forms Orbeon Forms 3.9.0.201105152046 CE
> Firefox 13.0
>
> "Do you have nested HTML elements within the repeat?"
> yes, i am sure that this is the problem.
>
> Example:
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml"
>    xmlns:ev="http://www.w3.org/2001/xml-events"
>    xmlns:xforms="http://www.w3.org/2002/xforms"
>    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
>    <head>
>        <xforms:model id="default">
>            <xforms:instance id="D" xmlns="">
>                <template>
>                    <Root>
>                        <e8 attributeE8="121111">
>                            <e81>
>
>                                <e812>e8121222</e812>
>                            </e81>
>                            <e82>
>                                <e821>e821222</e821>
>                                <e822>e82222222</e822>
>                            </e82>
>                        </e8>
>                        <e9>
>                            <e91>e91</e91>
>                            <e94>e943</e94>
>                        </e9>
>                        <e10>
>                            <e101>e1011</e101>
>                            <e104>e1042</e104>
>                        </e10>
>                    </Root>
>                </template>
>            </xforms:instance>
>            <xforms:submission action="run" id="submit" method="post"
> ref="instance('D')"/>
>            <xs:schema/>
>            <xforms:bind nodeset="/Root" readonly="true" required="true"/>
>            <xforms:bind nodeset="/Root/e9"/>
>            <xforms:bind nodeset="/Root/e9/e91" type="xs:string"/>
>            <xforms:bind nodeset="/Root/e9/e94" type="xs:string"/>
>            <xforms:bind nodeset="/Root/e10"/>
>            <xforms:bind nodeset="/Root/e10/e101" type="xs:string"/>
>            <xforms:bind nodeset="/Root/e10/e104" type="xs:string"/>
>        </xforms:model>
>     </head>
>    <body>
>        <p align="center">
>            <xforms:submit submission="submit">
>                <xforms:label>Speichern</xforms:label>
>            </xforms:submit>
>        </p>
>        <table border="1" style="border-collapse:collapse;">
>            <xforms:repeat nodeset="Root/*">
>                 <xforms:group ref="self::e9">
>                    <tr>
>                        <td valign="top">Element9-Label</td>
>                        <td>
>
>                            <p>
>                                <xforms:repeat nodeset="./*">
>                                    <xforms:group ref="self::e91">
>                                        <p>
>                                            <xforms:group>
>                                                <xforms:input ref="." />
>                                            </xforms:group>
>                                        </p>
>                                    </xforms:group>
>                                    <xforms:group ref="self::e94">
>                                        <p>
>                                            <xforms:input ref="." />
>                                        </p>
>                                    </xforms:group>
>                                </xforms:repeat>
>                            </p>
>                        </td>
>                    </tr>
>                </xforms:group>
>                <xforms:group ref="self::e10">
>                    <tr>
>                        <td valign="top">Element10-Label</td>
>                        <td>
>
>                            <p>
>                                <xforms:repeat nodeset="./*">
>                                   <xforms:group ref="self::e101">
>                                       <p>
>                                           <xforms:group>
>                                               <xforms:input ref="." />
>                                           </xforms:group>
>                                       </p>
>                                   </xforms:group>
>                                   <xforms:group ref="self::e104">
>                                       <p>
>                                           <xforms:input ref="." />
>                                       </p>
>                                   </xforms:group>
>                               </xforms:repeat>
>                           </p>
>                        </td>
>                    </tr>
>                </xforms:group>
>            </xforms:repeat>
>        </table>
>    </body>
> </html>
>
>
> Screenshot:
> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4655224/Bildschirmfoto.png
>
> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4655224/Bildschirmfoto-1.png
>
>
> Thanks :-)
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Repeat-child-tp4655182p4655224.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.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
OW2 mailing lists service home page: http://www.ow2.org/wws