Reusing FormRunner Components

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

Reusing FormRunner Components

Kaex
First of all, my apologies if this has been asked and answered before.  I've combed the docs and have been unable to come up with an answer.

Is it at all possible to reuse some of the FormRunner components (section, view, and grid specifically) with an embedded form?  I currently have a servlet (separate WAR deployment) that generates the XForm to send to Orbeon.  Is there a way to run the XSL transforms or force them to be run before Orbeon parses my XForm?  

Thanks in advance!  
Reply | Threaded
Open this post in threaded view
|

Re: Reusing FormRunner Components

Erik Bruchez
Administrator
In the nightly builds, those components are XBL components, and they
should just be picked up automatically if you use them (fr:section,
fr:grid).

In 3.9 and earlier, these are written in XSLT (see section.xsl and
grid.xsl in the code). These XSLT components are only hooked up when
running Form Runner pages. You could probably reuse them, but you
would have to make sure they run. This is possible by configuring the
preprocessing step with the oxf.epilogue.xforms.preprocessing
property:

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Preprocessing-step

You would have to write an XPL file which calls an XSLT transformation
including section.xsl and grid.xsl.

-Erik

On Tue, Dec 6, 2011 at 4:06 PM, Kaex <[hidden email]> wrote:

> First of all, my apologies if this has been asked and answered before.  I've
> combed the docs and have been unable to come up with an answer.
>
> Is it at all possible to reuse some of the FormRunner components (section,
> view, and grid specifically) with an embedded form?  I currently have a
> servlet (separate WAR deployment) that generates the XForm to send to
> Orbeon.  Is there a way to run the XSL transforms or force them to be run
> before Orbeon parses my XForm?
>
> Thanks in advance!
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Reusing-FormRunner-Components-tp4167099p4167099.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: Reusing FormRunner Components

Kaex
Thank you very much, for the quick response, as always! :D
Reply | Threaded
Open this post in threaded view
|

Re: Re: Reusing FormRunner Components

Erik Bruchez
Administrator
Not "as always", unfortunately, but thanks anyway ;)

-Erik

On Wed, Dec 7, 2011 at 6:52 AM, Kaex <[hidden email]> wrote:

> Thank you very much, for the quick response, as always! :D
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Reusing-FormRunner-Components-tp4167099p4169216.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