Separate deployment with custom processor

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

Separate deployment with custom processor

musang
Hi Gurus,


I am currently reviewing OPS as our company standard form processor, I'm still trying to understand all the bit and pieces. and I have 2 questions at the moment:

1. Has anyone tried to integrate OPS with spring using separate deployment ?
   Is it possible to put my custom java processor in my own application since it is easier for me to get Spring and all the other resources ?.

2. How do you create wizard type of form (multiple pages form) in this setup and submit all the data on the last page ?


Any help would be very much appreciated.

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

Re: Separate deployment with custom processor

Alessandro Vernet
Administrator
On Thu, Jul 17, 2008 at 6:49 PM, musang <[hidden email]> wrote:
> I am currently reviewing OPS as our company standard form processor, I'm
> still trying to understand all the bit and pieces. and I have 2 questions at
> the moment:
> [...]

I don't have any personal experience with Spring that I can talk about
:), so I will maybe let others here respond to your message. But in
the meantime, you might already be able to find some useful
information from others who have been using Orbeon Forms with Spring
and have posted here in the past. A search in the archive gives us:

http://www.nabble.com/forum/Search.jtp?forum=2537&local=y&query=spring

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: Separate deployment with custom processor

musang
Thanks Alex for your reply,

I have browse many posts in regards to this since yesterday, but I haven't really get a clear understanding on how everything sit together. most of the post say they have successfully integrated with spring but the information on how it was integrated is rather limited.

may be we forget about spring and all the other stuff first.
I'll try to explain more the questions that I have in detail just in OPS context :

my preferred setup is separate deployment.

1. I have existing web apps and the pages are using jsps, these jsps are producing HTML at the moment. I believe these jsps has to be rewritten to produce XHTML+XFORM instead including the header and footer. am I right ?

2. In order to custom handle the data I guess I need to write my own custom processor. I'm still not quite understand on how to deploy this, which app this class has to be sit. I still need to access my current app resources like transaction, jdbc pool, etc. and I also have no clue on how to tell the form on the client side/browser to send the data back to my processor.

3. I also need to create wizard type of form which consist of multiple page and only send the data on the last page. I don't know how to handle the data and page flow.

4. is it possible for OPS to request real-time server side validation, using ajax ? if it is, anyone know how ?because I couldn't find it in the documentation.

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

Re: Re: Separate deployment with custom processor

Alessandro Vernet
Administrator
On Thu, Jul 17, 2008 at 7:44 PM, musang <[hidden email]> wrote:
> 1. I have existing web apps and the pages are using jsps, these jsps are
> producing HTML at the moment. I believe these jsps has to be rewritten to
> produce XHTML+XFORM instead including the header and footer. am I right ?

Exactly!

> 2. In order to custom handle the data I guess I need to write my own custom
> processor. I'm still not quite understand on how to deploy this, which app
> this class has to be sit. I still need to access my current app resources
> like transaction, jdbc pool, etc. and I also have no clue on how to tell the
> form on the client side/browser to send the data back to my processor.

What do you mean by "custom handle the data"? In general XForms pages
will communicate with your code by POSTing XML to a "service" (URL you
specify), and getting XML back. You can implement those services
either with technologies that come with Orbeon Forms (XPL, XSL,
processors), or on your own (JSP, servlet, ...).

> 3. I also need to create wizard type of form which consist of multiple page
> and only send the data on the last page. I don't know how to handle the data
> and page flow.

One way to do this is to have all the steps of the wizard in the same
"page". Only one part of the page is visible to the user at a time
(xforms:switch/xforms:case can do the trick), and you switch between
steps of the wizard with xforms:toggle.

> 4. is it possible for OPS to request real-time server side validation, using
> ajax ? if it is, anyone know how ?because I couldn't find it in the
> documentation.

Yes, you can as the user types information in the form be submitting
the data to a service in the background (xforms:submission
replace="instance") to a service that tells you if the data is valid
or not.

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: Re: Separate deployment with custom processor

musang
Thanks Alex,

What I meant with "custom handle the data" is just to process the data submitted by the form in the specific way which Ibelieve many people has done it here, for e.g having post-submission processing which require to access to other resources like jdbc connection pool or jndi, application cache, etc. in other word it is not just saving them straight to xml database.
I understand that you mentioned before, I can use basically anything exposed to http to receive the xml posted. I guess what I'd have to know more now is how this custom processor works in a separate deployment, since I'm not too sure where this processor will reside and other resources it can access in this deployment. To be more specific, does this custom processor has to sit in ops context ? can I put it in my own app in this mode of deployment?

Thanks.
Alessandro Vernet wrote
On Thu, Jul 17, 2008 at 7:44 PM, musang <marwoto@gmail.com> wrote:
> 1. I have existing web apps and the pages are using jsps, these jsps are
> producing HTML at the moment. I believe these jsps has to be rewritten to
> produce XHTML+XFORM instead including the header and footer. am I right ?

Exactly!

> 2. In order to custom handle the data I guess I need to write my own custom
> processor. I'm still not quite understand on how to deploy this, which app
> this class has to be sit. I still need to access my current app resources
> like transaction, jdbc pool, etc. and I also have no clue on how to tell the
> form on the client side/browser to send the data back to my processor.

What do you mean by "custom handle the data"? In general XForms pages
will communicate with your code by POSTing XML to a "service" (URL you
specify), and getting XML back. You can implement those services
either with technologies that come with Orbeon Forms (XPL, XSL,
processors), or on your own (JSP, servlet, ...).

> 3. I also need to create wizard type of form which consist of multiple page
> and only send the data on the last page. I don't know how to handle the data
> and page flow.

One way to do this is to have all the steps of the wizard in the same
"page". Only one part of the page is visible to the user at a time
(xforms:switch/xforms:case can do the trick), and you switch between
steps of the wizard with xforms:toggle.

> 4. is it possible for OPS to request real-time server side validation, using
> ajax ? if it is, anyone know how ?because I couldn't find it in the
> documentation.

Yes, you can as the user types information in the form be submitting
the data to a service in the background (xforms:submission
replace="instance") to a service that tells you if the data is valid
or not.

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 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 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Separate deployment with custom processor

Alessandro Vernet
Administrator
On Sun, Jul 20, 2008 at 8:52 PM, musang <[hidden email]> wrote:

> What I meant with "custom handle the data" is just to process the data
> submitted by the form in the specific way which Ibelieve many people has
> done it here, for e.g having post-submission processing which require to
> access to other resources like jdbc connection pool or jndi, application
> cache, etc. in other word it is not just saving them straight to xml
> database.
> I understand that you mentioned before, I can use basically anything exposed
> to http to receive the xml posted. I guess what I'd have to know more now is
> how this custom processor works in a separate deployment, since I'm not too
> sure where this processor will reside and other resources it can access in
> this deployment. To be more specific, does this custom processor has to sit
> in ops context ? can I put it in my own app in this mode of deployment?
If you submit the XML to your own service, then you don't need to use
"processors" (processors are sort of XML components that you put
together in XPL). Your service can be implemented in PHP and deployed
on a different server across the web, but most likely will be
implemented in a separate war hosted by the same Tomcat.

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