Hi
I need to use a wizard for my form and I realized that if the form exceed 2Kb, you can't go to the next step coz it uses "GET" method to pass the instance. Just replace the file 'initial-instance.xml' in the example "xforms-wizard-pfc" and you will have the problem initial-instance.xml Any ideas ? Is it possible to use POST instead ? (not in xforms:submission but in action in the page flow controler) |
ERRATUM : Problem appears with IE 6 not with Firefox which seems to handle big URL size better
|
Administrator
|
Yes, you should not assume you can put more than 2K or so on a URL. So
yes, you should use POST in these cases. So use: <xforms:submission ... replace="all" method="post"/> -Erik On Oct 10, 2008, at 5:55 AM, orousseil wrote: > > ERRATUM : Problem appears with IE 6 not with Firefox which seems to > handle > big URL size better > -- > View this message in context: http://www.nabble.com/%28wizard%29-size-limit-with-GET-method-tp19917361p19917791.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 |
Thank for your response.
But the problem is than, as I explain before, even if you put method="POST" in the xforms:submission, the PFC call another page with a action / result syntax. This is THIS call which is made with the GET method. To reproduce the problem : - use the example : xforms-wizard-pfc - change the "initial-instance.xml" with the one I provided (to simulate a form bigger than 2kb) notice than step1-firstname.xhtml always include the line : <xforms:submission id="main" ref="/" action="/xforms-wizard-pfc/" method="post"/> I think the problem is more in these lines : <action when="/form/action = 'next'" > <result page="xforms-wizard-pfc-lastname" transform="oxf:xupdate"> <xu:transformations> <xu:update select="/form/action"/> <xu:update select="/form/user"><xu:copy-of select="document('input:instance')/form/user/*"/></xu:update> </xu:transformations> </result> </action> Is there a way to do POST with <result> ?
|
Administrator
|
I thought this was the default, but it turns out not. Set the
following in properties-base.xml: <property as="xs:string" processor-name="oxf:page-flow" name="instance-passing" value="forward"/> You can also do this on the page flow itself: <config ... instance-passing="forward"> -Erik On Oct 13, 2008, at 6:56 AM, orousseil wrote: > > Thank for your response. > But the problem is than, as I explain before, even if you put > method="POST" > in the xforms:submission, the PFC call another page with a action / > result > syntax. This is THIS call which is made with the GET method. > > To reproduce the problem : > > - use the example : xforms-wizard-pfc > - change the "initial-instance.xml" with the one I provided (to > simulate a > form bigger than 2kb) > > > > notice than step1-firstname.xhtml always include the line : > <xforms:submission id="main" ref="/" > action="/xforms-wizard-pfc/" method="post"/> > > I think the problem is more in these lines : > > <action when="/form/action = 'next'" > > <result page="xforms-wizard-pfc-lastname" > transform="oxf:xupdate"> > <xu:transformations> > <xu:update select="/form/action"/> > <xu:update select="/form/user"><xu:copy-of > select="document('input:instance')/form/user/*"/></xu:update> > </xu:transformations> > </result> > </action> > > Is there a way to do POST with <result> ? > > > > Erik Bruchez wrote: >> >> Yes, you should not assume you can put more than 2K or so on a URL. >> So >> yes, you should use POST in these cases. >> >> So use: >> >> <xforms:submission ... replace="all" method="post"/> >> >> -Erik >> >> On Oct 10, 2008, at 5:55 AM, orousseil wrote: >> >>> >>> ERRATUM : Problem appears with IE 6 not with Firefox which seems to >>> handle >>> big URL size better >>> -- >>> View this message in context: >>> http://www.nabble.com/%28wizard%29-size-limit-with-GET-method-tp19917361p19917791.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 >> >> > > -- > View this message in context: http://www.nabble.com/%28wizard%29-size-limit-with-GET-method-tp19917361p19955407.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 |
Thank you it works !!
I 've changed the default config in the past and don't remembered it... The instance-passing="forward" works with both <base href=''> to keep relative path to my app (as the page is now "webapps/xforms-server-submit").
|
Free forum by Nabble | Edit this page |