Problem with instance-passing=redirect

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

Problem with instance-passing=redirect

Rodrigo Ojeda
Hi:

This is my page flow:

<config xmlns="http://www.orbeon.com/oxf/controller"
xmlns:oxf="http://www.orbeon.com/oxf/processors"
xmlns:xu="http://www.xmldb.org/xupdate"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<page id="main" path-info="/test2/" view="view.xhtml">
<action when="/*/action = 'sendmail'" action="file-writing.xpl">
<result page="areyousure" transform="oxf:xslt">
<curriculum-instance xsl:version="2.0">
<xsl:copy-of select="doc('input:instance')/*"/>
</curriculum-instance>
</result>
</action>
</page>

<page id="areyousure" path-info="/test2/areyousure" model="areyousure.xpl" view="areyousure.xsl">
<action when="/*/action = 'yes'" action="mail-sender.xpl">
<result page="mail-sent"/>
</action>
<action when="/*/action = 'no'">
<result page="main" instance-passing="redirect"/>
</action>
</page>

<page id="mail-sent" path-info="/test2/mail-sent" view="mail-sent.xhtml"/>

<epilogue url="oxf:/config/epilogue.xpl"/>

</config>

In the <action when="/*/action = 'no'"> section, I want go back to the first page using instance-passing=redirect and it works but at the address bar you can read http://localhost:8180/ops/xforms-server-submit instead of http://localhost:8180/ops/test2/

What this means? Is the submission incomplete? How can I fix it?

Regards!
-- 
Don't try to bend the spoon, that's impossible. Instead, only try to
realize the truth.
-What truth?-
There is no spoon.
-There is no spoon?-
Then you'll see that it's not the spoon that bends, it is only yourself.


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Problem with instance-passing=redirect

Rodrigo Ojeda
Danger danger, noob error D:

My submission action path was incorrect.

My apologies...

Regards!

On Thu, 2007-06-21 at 15:23 -0400, Rodrigo Ojeda wrote:

> Hi:
>
> This is my page flow:
>
> <config xmlns="http://www.orbeon.com/oxf/controller"
> xmlns:oxf="http://www.orbeon.com/oxf/processors"
> xmlns:xu="http://www.xmldb.org/xupdate"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <page id="main" path-info="/test2/" view="view.xhtml">
> <action when="/*/action = 'sendmail'" action="file-writing.xpl">
> <result page="areyousure" transform="oxf:xslt">
> <curriculum-instance xsl:version="2.0">
> <xsl:copy-of select="doc('input:instance')/*"/>
> </curriculum-instance>
> </result>
> </action>
> </page>
>
> <page id="areyousure" path-info="/test2/areyousure"
> model="areyousure.xpl" view="areyousure.xsl">
> <action when="/*/action = 'yes'" action="mail-sender.xpl">
> <result page="mail-sent"/>
> </action>
> <action when="/*/action = 'no'">
> <result page="main" instance-passing="redirect"/>
> </action>
> </page>
>
> <page id="mail-sent" path-info="/test2/mail-sent"
> view="mail-sent.xhtml"/>
>
> <epilogue url="oxf:/config/epilogue.xpl"/>
>
> </config>
>
> In the <action when="/*/action = 'no'"> section, I want go back to the
> first page using instance-passing=redirect and it works but at the
> address bar you can read
> http://localhost:8180/ops/xforms-server-submit instead of
> http://localhost:8180/ops/test2/
>
> What this means? Is the submission incomplete? How can I fix it?
>
> Regards!
> --
> Don't try to bend the spoon, that's impossible. Instead, only try to
> realize the truth.
> -What truth?-
> There is no spoon.
> -There is no spoon?-
> Then you'll see that it's not the spoon that bends, it is only yourself.
> plain text document attachment (message-footer.txt)
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Don't try to bend the spoon, that's impossible. Instead, only try to
realize the truth.
-What truth?-
There is no spoon.
-There is no spoon?-
Then you'll see that it's not the spoon that bends, it is only yourself.




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws