Accessing summary columns and form rendering on JSP

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

Accessing summary columns and form rendering on JSP

ktangirala
Hi, I am trying to build a custom JSP page which embeds the summary log layout as designed in the Orbeon forms. I can't use the orbeon form runner's summary URL directly for business reasons. What I am trying to understand is 1. When I design the form in Form Builder, I mark some controls as "Show in Summary" so that they appear in the summary log when I open the published form. In my case, I need to have access to those columns marked for summary so that I can populate that information in my JSP page's HTML table. 2. In the published form, I need a way to embed the designed form as is, while retaining control over the "Save" and Validation capabilities provided by Orbeon. This is again with respect to building my custom JSP that shows the form and I have control on how I want to submit the form with my own FORM action. Hope someone can answer! Thanks, K
Reply | Threaded
Open this post in threaded view
|

Re: Accessing summary columns and form rendering on JSP

Tambet Matiisen
Hi, K!

1. I suppose you could access persistence layer directly. See:
http://wiki.orbeon.com/forms/doc/contributor-guide/form-builder-integration-notes#TOC-Persistence-API
and
http://wiki.orbeon.com/forms/doc/contributor-guide/form-builder-integration-notes#TOC-Data-exchange-format

Or you could implement your own persistence layer, which exposes certain fields as columns in database table.

2. For embedding Orbeon in your page you have many options:
a) just use OrbeonXFormsFilter in your app, which preprocesses XForms tags in your JSP-s output. If there isn't any, then it just passes everything through, with one caveat - everything must be XML. XHTML is fine. You can put your XForms-producing JSPs into different directory than other JSPs, and apply OrbeonXFormsFilter only to that directory.
b) include Orbeon form in your page with iframe.
c) use JSR-168/JSR-268 portlet, if your application server supports it. See:
http://wiki.orbeon.com/forms/doc/developer-guide/admin/deployment-portlet
d) use remote portlet method. As I understand it, this doesn't imply, that Orbeon is deployed in separate server or that your application server must support portlets. It just embeds Orbeon form in your HTML page and rewrites all URL-s so that AJAX calls made by Orbeon work.
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-remote-portlet-deployment
e) use AJAX portlet method.
http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Ajax-portlet
Choice depends on you application, application server and familiarity with the technology, I suppose.

You could use workflow send button for sending submission results to your JSP. See:
http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Workflow-send-button

Hope it helps.

  Tambet

On 16.12.2010 10:21, ktangirala wrote:
Hi, I am trying to build a custom JSP page which embeds the summary log layout as designed in the Orbeon forms. I can't use the orbeon form runner's summary URL directly for business reasons. What I am trying to understand is 1. When I design the form in Form Builder, I mark some controls as "Show in Summary" so that they appear in the summary log when I open the published form. In my case, I need to have access to those columns marked for summary so that I can populate that information in my JSP page's HTML table. 2. In the published form, I need a way to embed the designed form as is, while retaining control over the "Save" and Validation capabilities provided by Orbeon. This is again with respect to building my custom JSP that shows the form and I have control on how I want to submit the form with my own FORM action. Hope someone can answer! Thanks, K

View this message in context: Accessing summary columns and form rendering on JSP
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
Reply | Threaded
Open this post in threaded view
|

Re: Accessing summary columns and form rendering on JSP

ktangirala
Hi Tambet,

Thank you so much for your detailed reply. I will use one of the following methods suggested by you depending on my business need. I was indeed able to figure out how to write our own persistence layer. But one thing I couldn't follow is that, do we need to rebuild orbeon from source again if we write our own persistence layer? Or do we have any out of the box way to plug in the functionality?

Thanks again,
K
Reply | Threaded
Open this post in threaded view
|

Re: Re: Accessing summary columns and form rendering on JSP

Erik Bruchez
Administrator
K,

You don't need to rebuild Orbeon from source if you write your own
persistence layer.

A persistence layer implementation consists a few REST services that
you implement. You simply tell Orbeon Forms, in a configuration file
(properties-local.xml), what the URL of the service is.

You can implement them within Orbeon (for example using XML pipelines
(XPL), or with any technology you like (Java, Ruby, PHP, you name it).
In all cases, you don't need to modify Orbeon Forms beyond
configuration properties!

-Erik

On Tue, Dec 21, 2010 at 2:57 AM, ktangirala
<[hidden email]> wrote:

>
> Hi Tambet,
>
> Thank you so much for your detailed reply. I will use one of the following
> methods suggested by you depending on my business need. I was indeed able to
> figure out how to write our own persistence layer. But one thing I couldn't
> follow is that, do we need to rebuild orbeon from source again if we write
> our own persistence layer? Or do we have any out of the box way to plug in
> the functionality?
>
> Thanks again,
> K
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Accessing-summary-columns-and-form-rendering-on-JSP-tp3090455p3142589.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