Form Runner Page-Flow.xml

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

Form Runner Page-Flow.xml

bsteuhl
How do you create your own submissions in Form Runner using page-flow.xml.

For example if I wanted to create my own PDF how would I configure the submission - page-flow.xml?  I understand that page-flow.xml is in orbeon-form-runner.jar.  I invesitgated that jar file.  I thought from within thr form I could create a submission like so:

In form builder create a submission which would be called by a trigger:
<xforms:submission id="pdf" resource="/fr/service/xpl" method="post" serialization="application/xml" replace="none" />

Then modify the page-flow.xml to include this path-info:

<page path-info="/fr/service/pdf" model="my_pdf.xpl" />

Create a folder called pdf and in that folder put my_pdf.xpl and my_pdf.xsl.

Repackage as a jar file and update in lib directory.

Is there something I am missing?  I like using Form Builder/Runner but also want the capability of creating my own xpl files like I do outside of Form Builder.


Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Form Runner Page-Flow.xml

Alessandro  Vernet
Administrator
Brian,

The idea with Form Runner is that if you follow some conventions, you
don't need to change the page flow (Convention over Configuration). So
in your case you could put your service under
/fr/service/custom/my-app/pdf and implement it in
/forms/my-app/service/pdf.xpl. You'll find more on this at:

http://wiki.orbeon.com/forms/doc/contributor-guide/form-runner-uris

Would this work for you?

Alex

On Sun, Feb 28, 2010 at 10:35 PM, bsteuhl <[hidden email]> wrote:

>
> How do you create your own submissions in Form Runner using page-flow.xml.
>
> For example if I wanted to create my own PDF how would I configure the
> submission - page-flow.xml?  I understand that page-flow.xml is in
> orbeon-form-runner.jar.  I invesitgated that jar file.  I thought from
> within thr form I could create a submission like so:
>
> In form builder create a submission which would be called by a trigger:
> <xforms:submission id="pdf" resource="/fr/service/xpl" method="post"
> serialization="application/xml" replace="none" />
>
> Then modify the page-flow.xml to include this path-info:
>
> <page path-info="/fr/service/pdf" model="my_pdf.xpl" />
>
> Create a folder called pdf and in that folder put my_pdf.xpl and my_pdf.xsl.
>
> Repackage as a jar file and update in lib directory.
>
> Is there something I am missing?  I like using Form Builder/Runner but also
> want the capability of creating my own xpl files like I do outside of Form
> Builder.
>
>
> Thank you.
> --
> View this message in context: http://n4.nabble.com/Form-Runner-Page-Flow-xml-tp1573188p1573188.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet