Getting started with XForms

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

Getting started with XForms

Colin O'Brien
Hello all,

I am looking for some tips on getting started with XForms and OPS.
I have a fairly comprehensive OPS prototype publishing web content
already running, so have some capabilities with XML and XSLT and XPL.
Now I need to add facilities for maintaining that content.

I have read the OPS XForms pages, and I have read Micah's book.
I have looked through the OPS examples, but I have not found what I am
looking for, that will help me make the transition from reading and
thinking, to actually doing ;-)

Perhaps someone could point me to an example that is close to
* displays an empty form that has more than one field
* accepts input and stores it somewhere (to a file would be good for my
case, but just generally "doing something" with the new data would be
fine)
* displays another page (a thankyou).

There are simple examples, but they are maybe too simple (just one
field) or too much (wizard-like) or don't show how the whole process
hangs together (they leave the form on screen afterwards).

Anyway, any tips or pointers (even to non-OPS resources) would be very
much appreciated.

Regards
Colin




--
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: Getting started with XForms

Alessandro  Vernet
Administrator
Hi Colin,

Maybe have a look at the XForms sandbox example. It seems to do
something very similar to what you are trying to achieve: there is a
first page where you can select a file to send, and upon submission
you go to another page which runs the file you have uploaded on the
first page. You can find it under examples\sandbox\xforms.

Alex

On 11/2/05, Colin O'Brien <[hidden email]> wrote:

> Hello all,
>
> I am looking for some tips on getting started with XForms and OPS.
> I have a fairly comprehensive OPS prototype publishing web content
> already running, so have some capabilities with XML and XSLT and XPL.
> Now I need to add facilities for maintaining that content.
>
> I have read the OPS XForms pages, and I have read Micah's book.
> I have looked through the OPS examples, but I have not found what I am
> looking for, that will help me make the transition from reading and
> thinking, to actually doing ;-)
>
> Perhaps someone could point me to an example that is close to
> * displays an empty form that has more than one field
> * accepts input and stores it somewhere (to a file would be good for my
> case, but just generally "doing something" with the new data would be
> fine)
> * displays another page (a thankyou).
>
> There are simple examples, but they are maybe too simple (just one
> field) or too much (wizard-like) or don't show how the whole process
> hangs together (they leave the form on screen afterwards).
>
> Anyway, any tips or pointers (even to non-OPS resources) would be very
> much appreciated.
>
> Regards
> Colin
>
>
>
>
>
> --
> 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
>
>
>

--
Blog (XML, Web apps, Open Source): 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Getting started with XForms

Erik Bruchez
Administrator
In reply to this post by Colin O'Brien
Colin O'Brien wrote:

> Hello all,
>
> I am looking for some tips on getting started with XForms and OPS.
> I have a fairly comprehensive OPS prototype publishing web content
> already running, so have some capabilities with XML and XSLT and XPL.
> Now I need to add facilities for maintaining that content.
>
> I have read the OPS XForms pages, and I have read Micah's book.
> I have looked through the OPS examples, but I have not found what I am
> looking for, that will help me make the transition from reading and
> thinking, to actually doing ;-)
>
> Perhaps someone could point me to an example that is close to
> * displays an empty form that has more than one field
> * accepts input and stores it somewhere (to a file would be good for my
> case, but just generally "doing something" with the new data would be fine)
> * displays another page (a thankyou).
>
> There are simple examples, but they are maybe too simple (just one
> field) or too much (wizard-like) or don't show how the whole process
> hangs together (they leave the form on screen afterwards).
>
> Anyway, any tips or pointers (even to non-OPS resources) would be very
> much appreciated.
You can always check the XForms wiki:

   http://www.xforms-wiki.com/

With OPS, as Alex said, the XForms sandbox is a great place to start,
because you can just edit your XHTML+XForms files with any editor you
like, upload it to OPS, and see if and how it works. You can even use
the public OPS examples to try your forms:

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

This allows you to test XForms pages without even installing OPS on your
machine.

Examples which IMO are not too simple but not too complex either include:

   XForms Wizard with Switch
   http://www.orbeon.com/ops/goto-example/xforms-sandbox

   Sample Tax Form
   http://www.orbeon.com/ops/goto-example/xforms-tax

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

Examples which are a little more complex:

   XForms Controls
   http://www.orbeon.com/ops/goto-example/xforms-controls

   To Do Lists
   http://www.orbeon.com/ops/goto-example/xforms-todo

Most of these examples are really standalone pages which do not involve
other OPS machinery, except maybe to call a service to format an XML
document (the "Show Instance" feature of some examples).

The next step, beyond the XForms Sandbox and looking at the simple
examples above, is to dynamically generate XForms pages with some
initial content, perform submissions, etc.:

   BizDoc NG
   http://www.orbeon.com/ops/goto-example/bizdoc2

   Blog
   http://www.orbeon.com/ops/goto-example/blog

I hope this helps!

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

Re: Getting started with XForms

Colin O'Brien
Hi Erik,

thanks for all the info.
Yes there is a lot in OPS.

I guess my subject line was poor.
I've written some XForms in the past.
And while I am sure I would benefit from looking at the XForms Wiki,
it's not really what I am after.

The real challenge is bringing it all together in OPS.
Not just how does one form work, but how does a process work.
How does the user get from here to there, and how do I make that happen.
And what I was hoping for was an example that was balanced between
showing all the elements, but still small enough for me to take them
all in.

So I think Alex has given me a good pointer, what is most
interesting/useful is how the sandbox is built, rather than using it.
So I will explore that some and see how I get on and hopefully my next
question will be more specific.
Maybe I'll even be able to give you the example I was hoping to find ;-)

Best regards
Colin




--
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: Getting started with XForms

Erik Bruchez
Administrator
This topic should be an important section of the new XForms
documentation and/or tutorial. We just have to write it ;-)

-Erik

Colin O'Brien wrote:

> Hi Erik,
>
> thanks for all the info.
> Yes there is a lot in OPS.
>
> I guess my subject line was poor.
> I've written some XForms in the past.
> And while I am sure I would benefit from looking at the XForms Wiki,
> it's not really what I am after.
>
> The real challenge is bringing it all together in OPS.
> Not just how does one form work, but how does a process work.
> How does the user get from here to there, and how do I make that happen.
> And what I was hoping for was an example that was balanced between
> showing all the elements, but still small enough for me to take them all
> in.
>
> So I think Alex has given me a good pointer, what is most
> interesting/useful is how the sandbox is built, rather than using it.
> So I will explore that some and see how I get on and hopefully my next
> question will be more specific.
> Maybe I'll even be able to give you the example I was hoping to find ;-)
>
> Best regards
> Colin


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