Page Flow and redirect problem
Posted by
teppen on
Jan 19, 2010; 2:51pm
URL: https://discuss.orbeon.com/Page-Flow-and-redirect-problem-tp1017609.html
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: 88Here 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