XForm with 0 or more instances of an element

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

XForm with 0 or more instances of an element

cknell
Suppose an application that collects information from the user by way of an XHTML form bound to an XForms instance. In this application it is possible for the user to add items to a list that may have zero or more members. How do I create an XForms instance to handle that?

--
Charles Knell
[hidden email] - 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
Reply | Threaded
Open this post in threaded view
|

Re: XForm with 0 or more instances of an element

Alessandro  Vernet
Administrator
Hi Charles,

It looks like <xforms:repeat> is the answer to your question. Have a
look at the code of the XForms Repeating Elements example which shows
case of nested repeating structure. You can try the live example at
this URL:

http://www.orbeon.com/ops/goto-example/xforms-repeat

Alex

On 9/1/05, [hidden email] <[hidden email]> wrote:

> Suppose an application that collects information from the user by way of an XHTML form bound to an XForms instance. In this application it is possible for the user to add items to a list that may have zero or more members. How do I create an XForms instance to handle that?
>
> --
> Charles Knell
> [hidden email] - 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
>
>
>


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: XForm with 0 or more instances of an element

cknell
In reply to this post by cknell
Yes, thanks for pointing me there. That looks like it will do what I need.
--
Charles Knell
[hidden email] - email



-----Original Message-----
From:     Alessandro Vernet <[hidden email]>
Sent:     Thu, 1 Sep 2005 13:58:02 -0700
To:       [hidden email]
Subject:  Re: [ops-users] XForm with 0 or more instances of an element

Hi Charles,

It looks like <xforms:repeat> is the answer to your question. Have a
look at the code of the XForms Repeating Elements example which shows
case of nested repeating structure. You can try the live example at
this URL:

http://www.orbeon.com/ops/goto-example/xforms-repeat

Alex

On 9/1/05, [hidden email] <[hidden email]> wrote:

> Suppose an application that collects information from the user by way of an XHTML form bound to an XForms instance. In this application it is possible for the user to add items to a list that may have zero or more members. How do I create an XForms instance to handle that?
>
> --
> Charles Knell
> [hidden email] - 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
>
>
>

--
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
Reply | Threaded
Open this post in threaded view
|

Re: XForm with 0 or more instances of an element

Erik Bruchez
Administrator
In reply to this post by Alessandro Vernet
Alessandro Vernet wrote:
> Hi Charles,
>
> It looks like <xforms:repeat> is the answer to your question. Have a
> look at the code of the XForms Repeating Elements example which shows
> case of nested repeating structure. You can try the live example at
> this URL:
>
> http://www.orbeon.com/ops/goto-example/xforms-repeat

BTW xforms:repeat is also used by other examples, like the BizDoc, Blog,
Address Book NG, Charts (nightly builds).

-Erik



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