Integration help?

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

Integration help?

lazx
I would like to integrate Orbeon Form Runner into my current application, which has security, navigation, etc already existing.  I would like to hide the rest of orbeon from the user - ie, have forms render and be saved...  iframes would work, but I'd rather not expose orbeon in that way...

Has anyone else encountered this problem and would like to provide some pointers to get me started?

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

Re: Integration help?

Erik Bruchez
Administrator
This is a model we are in the process of deploying with Form Runner,  
with a PHP front-end. But it could also be applied to a Java front-end.

The idea is as follows:

* Orbeon Forms produces an HTML fragment instead of a full page. You  
can enable this with ?orbeon-portlet=true in the URL of most pages.
* The front-end integrate that HTML fragment
* Incoming browser requests for Orbeon Forms resources (CSS, JS), HTML  
Form POST, and Ajax requests must be appropriately forwarded.

We have this done for a PHP front-end, but somebody could port this to  
Java.

-Erik

On Sep 22, 2008, at 1:13 PM, lazx wrote:

>
> I would like to integrate Orbeon Form Runner into my current  
> application,
> which has security, navigation, etc already existing.  I would like  
> to hide
> the rest of orbeon from the user - ie, have forms render and be  
> saved...
> iframes would work, but I'd rather not expose orbeon in that way...
>
> Has anyone else encountered this problem and would like to provide  
> some
> pointers to get me started?
>
> Thanks!
> --
> View this message in context: http://www.nabble.com/Integration-help--tp19615657p19615657.html
> Sent from the ObjectWeb 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 for the Enterprise Done the Right Way
http://www.orbeon.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: Integration help?

lazx
Thanks Erik for your advice!

Hope you don't mind clarifying a couple points:

1) Orbeon produces html code that is embedded in the non-orbeon html page... lets say though a http client (Net::HTTP).  This code is placed into a div in the non-orbeon page?

2) Incoming requests are (POST, ajax) are forwarded to the orbeon server.  Does this not defeat the purpose of embedding the code in the non-orbeon page.  Why not just use an iframe at this point??  Am I overlooking the benefit of embedding the code vs. iframing (yes, I know the non-orbeon parent css and the like can be applied to the child orbeon code once embedded, but there must be some other reason why this method is far superior to an iframe).  What I would really like to do is allow my current app to act like a gateway to the orbeon form app.  But if requests are forward to orbeon, then in theory orbeon can be accessed by just accessed the forwarded url - no?

3) What does orbeon-portlet=true versus that parameter not being set?  Didn't notice much happening with that set.


Thank you very much for your help - I do really appreciate it :)


Erik Bruchez wrote
This is a model we are in the process of deploying with Form Runner,  
with a PHP front-end. But it could also be applied to a Java front-end.

The idea is as follows:

* Orbeon Forms produces an HTML fragment instead of a full page. You  
can enable this with ?orbeon-portlet=true in the URL of most pages.
* The front-end integrate that HTML fragment
* Incoming browser requests for Orbeon Forms resources (CSS, JS), HTML  
Form POST, and Ajax requests must be appropriately forwarded.

We have this done for a PHP front-end, but somebody could port this to  
Java.

-Erik

On Sep 22, 2008, at 1:13 PM, lazx wrote:

>
> I would like to integrate Orbeon Form Runner into my current  
> application,
> which has security, navigation, etc already existing.  I would like  
> to hide
> the rest of orbeon from the user - ie, have forms render and be  
> saved...
> iframes would work, but I'd rather not expose orbeon in that way...
>
> Has anyone else encountered this problem and would like to provide  
> some
> pointers to get me started?
>
> Thanks!
> --
> View this message in context: http://www.nabble.com/Integration-help--tp19615657p19615657.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org  
> mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Integration help?

Alessandro Vernet
Administrator
On Wed, Sep 24, 2008 at 12:46 PM, lazx <[hidden email]> wrote:
> 1) Orbeon produces html code that is embedded in the non-orbeon html page...
> lets say though a http client (Net::HTTP).  This code is placed into a div
> in the non-orbeon page?

This will produce a div, which you can then place in your page.

> 2) Incoming requests are (POST, ajax) are forwarded to the orbeon server.
> Does this not defeat the purpose of embedding the code in the non-orbeon
> page.  Why not just use an iframe at this point??  Am I overlooking the
> benefit of embedding the code vs. iframing (yes, I know the non-orbeon
> parent css and the like can be applied to the child orbeon code once
> embedded, but there must be some other reason why this method is far
> superior to an iframe).  What I would really like to do is allow my current
> app to act like a gateway to the orbeon form app.  But if requests are
> forward to orbeon, then in theory orbeon can be accessed by just accessed
> the forwarded url - no?
iframes pose layout issue in your page: they are not automatically sized
based on their content. Also,they behave differently from end-user's
perspective than regular content in the page. Those are often good
enough reasons to avoid using iframes.

> 3) What does orbeon-portlet=true versus that parameter not being set?
> Didn't notice much happening with that set.

Looking at the source of the generated page you will see that all the
content is placed inside a <div>.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
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
Reply | Threaded
Open this post in threaded view
|

Re: Integration help?

msalmadan@yahoo.com
In reply to this post by lazx
Hi Erik and Alex,
In this post there is a mention about the use of Orbeon Forms Runner to produces an HTML fragment instead of a full page in order to integrate Orbeon Form Runner into external applications.  Also this post mention some work that has been done with php front end using this technique. The question is where do I find the php sample code "app" or technical documentation that tells me how to accomplish this?

Thanks,
Majeed
 
lazx wrote
I would like to integrate Orbeon Form Runner into my current application, which has security, navigation, etc already existing.  I would like to hide the rest of orbeon from the user - ie, have forms render and be saved...  iframes would work, but I'd rather not expose orbeon in that way...

Has anyone else encountered this problem and would like to provide some pointers to get me started?

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

Re: Re: Integration help?

Erik Bruchez
Administrator
Just add "?orbeon-embeddable=true" to the URL, and a fragment will be  
produced.

This is only part of the solution.

For the PHP code, check the last version of the TYPO3 extension  
attached here:

   http://wiki.orbeon.com/forms/doc/developer-guide/form-runner-typo3-extension

The zip version contains the source.

We also have some information on "remote portlets" which might help:

   http://wiki.orbeon.com/forms/doc/developer-guide/xforms-remote-portlet-deployment

-Erik

On Mar 26, 2009, at 9:37 PM, [hidden email] wrote:

>
> Hi Erik and Alex,
> In this post there is a mention about the use of Orbeon Forms Runner  
> to
> produces an HTML fragment instead of a full page in order to integrate
> Orbeon Form Runner into external applications.  Also this post  
> mention some
> work that has been done with php front end using this technique. The
> question is where do I find the php sample code "app" or technical
> documentation that tells me how to accomplish this?
>
> Thanks,
> Majeed
>
>
> lazx wrote:
>>
>> I would like to integrate Orbeon Form Runner into my current  
>> application,
>> which has security, navigation, etc already existing.  I would like  
>> to
>> hide the rest of orbeon from the user - ie, have forms render and be
>> saved...  iframes would work, but I'd rather not expose orbeon in  
>> that
>> way...
>>
>> Has anyone else encountered this problem and would like to provide  
>> some
>> pointers to get me started?
>>
>> Thanks!
>>
>
> --
> View this message in context: http://www.nabble.com/Integration-help--tp19615657p22735942.html
> Sent from the ObjectWeb 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 for the Enterprise Done the Right Way
http://www.orbeon.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