POST parameter name for the XForm itself

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

POST parameter name for the XForm itself

Jean Luc-2
Hi [Erik],

I use Orbeon as a separate war (purely as an XForms engine). Form submissions are done to my servlet. What the servlet receives now is an HTTP POST with the body consisting of the submitted instance. It is not of the form parameterName=parameterValue (like a regular POST), but just the value.

Is it possible to configure Orbeon to use the form above (with a predefined or configurable parameter name)? It would make life easier for those using Spring MVC, at least (by using automatic binding between the POSTed form and the variables instead of reading the form "manually" in a subclass of AbstractController)

Thanks,
JL


--
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: POST parameter name for the XForm itself

Erik Bruchez
Administrator
Damn, I responded to this but it looks like my email client crashed  
and burned without leaving a trace of it.

Anyway, try using method="urlencoded-post". XForms also supports  
method="form-data-post" but we don't implement that yet.

See also this bug which covers XForms 1.1 enhancements to this:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=308097&group_id=168&atid=350207

-Erik

On Dec 20, 2007, at 10:11 AM, Jean Luc wrote:

> Hi [Erik],
>
> I use Orbeon as a separate war (purely as an XForms engine). Form  
> submissions are done to my servlet. What the servlet receives now is  
> an HTTP POST with the body consisting of the submitted instance. It  
> is not of the form parameterName=parameterValue (like a regular  
> POST), but just the value.
>
> Is it possible to configure Orbeon to use the form above (with a  
> predefined or configurable parameter name)? It would make life  
> easier for those using Spring MVC, at least (by using automatic  
> binding between the POSTed form and the variables instead of reading  
> the form "manually" in a subclass of AbstractController)
>
> Thanks,
> JL
>
> --
> 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