Hello.
I have a problem with redirecting users after submitting an xform. It's a pretty straight forward registration/order form and I want to redirect the user to another page after submitting. I've looked at the ATM example application and Page Flow Controller reference and I can't figure out what's wrong, so I hope someone here can help me out. The xpl runs fine after submission and the data output from the xpl looks fine, but none of the result elements executes, not even the default action result. This is the error message I get: Exception in client-side code You may want to try one of the following: * Close this dialog and continue to use this page. * Reload this page. Note that you will lose any unsaved changes. * If the above does not work, try reloading the page yourself. Note that you will lose any unsaved changes: o With Firefox and Safari: hold down the shift key and click the Reload button in your browser toolbar. o With Internet Explorer: hold down the control key and click the Reload button in your browser toolbar. * Return home. Show Details Show details Hide Details Hide details Exception in client-side code. * Message: c is undefined * File: http://localhost:3333/xforms-server/xforms-yuicalendar-min.js * Line number: 88 Here are some of my page-flow: <page id="order" path-info="/order" view="views/orderform.xsl"> <action when="/dm:Static-Data" action="models/check-order-action.xpl"> <result id="success" when="/success = 'true'" page="order-details"/> <result id="failure" when="/success = 'false'" page="order-failure"/> <result id="otherwise" page="error"/> </action> </page> Here's how my xforms:submission look like: <xforms:submission id="save-submission" ref="instance('new-customer-instance')" resource="/order" method="post" replace="none"> -Tommy Skarateppen |
Administrator
|
Tommy,
The error you get could be a sign of a bug. Would you be able to package a simpler version of your code (as simple as possible to reproduce the problem) that could be deployed as an app (i.e. directory under resources/apps), so we can reproduce this here? Alex On Jan 19, 2010, at 6:51 AM, teppen <[hidden email]> wrote: > > Hello. > I have a problem with redirecting users after submitting an xform. > It's a > pretty straight forward registration/order form and I want to > redirect the > user to another page after submitting. > > I've looked at the ATM example application and Page Flow Controller > reference and I can't figure out what's wrong, so I hope someone > here can > help me out. The xpl runs fine after submission and the data output > from the > xpl looks fine, but none of the result elements executes, not even the > default action result. > > This is the error message I get: > > Exception in client-side code > You may want to try one of the following: > > * Close this dialog and continue to use this page. > * Reload this page. Note that you will lose any unsaved changes. > * > > If the above does not work, try reloading the page yourself. > Note that > you will lose any unsaved changes: > o With Firefox and Safari: hold down the shift key and > click the > Reload button in your browser toolbar. > o With Internet Explorer: hold down the control key and > click the > Reload button in your browser toolbar. > * Return home. > > Show Details Show details > > Hide Details Hide details > Exception in client-side code. > > * Message: c is undefined > * File: http://localhost:3333/xforms-server/xforms-yuicalendar-min.js > * Line number: 88 > > > Here are some of my page-flow: > > <page id="order" path-info="/order" view="views/orderform.xsl"> > <action when="/dm:Static-Data" > action="models/check-order-action.xpl"> > <result id="success" when="/success = 'true'" > page="order-details"/> > <result id="failure" when="/success = 'false'" > page="order-failure"/> > <result id="otherwise" page="error"/> > </action> > </page> > > Here's how my xforms:submission look like: > <xforms:submission id="save-submission" > ref="instance('new-customer-instance')" resource="/order" > method="post" > replace="none"> > > -Tommy Skarateppen > -- > View this message in context: http://n4.nabble.com/Page-Flow-and-redirect-problem-tp1017609p1017609.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 -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
I've packed some code in a zip-file for testing. The code gives me the same error ("Exception in client-side code"). I use Firefox, but I just discovered that the browsers Chrome and Opera are not showing the same error message as Firefox: "Server didn't respond with valid XML". orbeon-redirect.zip -Tommy PS. I use Orbeon Forms 3.7.1 (Developer Release) |
Free forum by Nabble | Edit this page |