Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6598157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:18:15+00:00 2026-05-25T18:18:15+00:00

I have made a page that is suppose to be a common exit point

  • 0

I have made a page that is suppose to be a common exit point (success page) for all Orbeon applications made both manually creating XFroms and by Orbeon Builder. The page is really simple as it is only supposed to show a generic message that is specified in a form that gets redirected to the page after submission. This feels like a trivial task, yet I have struggled a lot with it.

The documentation says:

The “POST” solution
If your XForms page responds to an HTTP POST containing XML, then it can access the content of the POST data with a special URL called input:instance:
<xforms:instance id=”user-data” src=”input:instance”/>
This results in the user-data instance being populated with the XML data posted to the XForms page. It’s as easy as this!
NOTE: Nothing prevents you to combine this method with getting data from the request or a service.

My page-flow.xml


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

        <page id="main" path-info="/thankyou/" view="thankyou.xhtml"/>
        <page id="test" path-info="/thankyou/test" view="test.xhtml">
            <action when="/form/fromPage = 'test'">
                <result page="main"/>
            </action>
        </page>

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

thankyou.xhtml


    <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
      xmlns:xforms="http://www.w3.org/2002/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
    <xhtml:head>
      <xhtml:title>Thank you</xhtml:title>
      <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
      <xforms:instance id="form-instance" src="input:instance"/>

      <xforms:bind id="form-binds" nodeset="instance('form-instance')">
        <xforms:bind id="success-bind" ref="/form/success/successPageText"/>
      </xforms:bind>
      </xforms:model>
    </xhtml:head>
    <xhtml:body>
      <xhtml:p>
        <xhtml:output ref="instance('form-instance')/form/success/successPageText"/>
      </xhtml:p>
      <xhtml:p>
        <xhtml:output bind="success-bind"/>
      </xhtml:p>
      <xhtml:p>
        <xhtml:a href="http://www.google.com">Away from here</xhtml:a>
      </xhtml:p>
    </xhtml:body>
    </xhtml:html>

test.xhtml


    <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
      xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">

      <xhtml:head>
        <xhtml:title>Thankyou page test</xhtml:title>
        <xforms:model id="form-model">
          <xforms:instance id="form-instance">
            <form>
              <input>text here</input>
              <fromPage>test</fromPage>
              <success>
                <successPageText>
                  This is a test.
                </successPageText>
              </success>
            </form>
          </xforms:instance>

          <xforms:bind id="form-binds" nodeset="instance('form-instance')">
            <xforms:bind id="input-bind" ref="/form/input" type="xs:string" required="true()"/>
          </xforms:bind>

          <xforms:submission id="main-submission" method="post" action="/thankyou/test"
            ref="instance('form-instance')" validate="false" replace="all"/> 
        </xforms:model>
      </xhtml:head>

      <xhtml:body>
        <xhtml:table>
          <xhtml:tr>
            <xhtml:td>
              <xforms:input bind="input-bind" id="input-control">
                <xforms:label>Type something here </xforms:label>
              </xforms:input>
            </xhtml:td>
          </xhtml:tr>
          <xhtml:tr>
            <xhtml:td>
              <xforms:submit submission="main-submission" id="submit-control">
                <xforms:label>Test</xforms:label>
                <xforms:setvalue ev:event="DOMActivate">submit</xforms:setvalue>
              </xforms:submit>
            </xhtml:td>
          </xhtml:tr>
        </xhtml:table>
      </xhtml:body>
    </xhtml:html>

The thankyou page gets loaded when submitting from the test page, but the value set for the ‘successPageText’ is not shown.

I have tested with a Java servlet that when submitting from other pages/forms the xml data is included with the post, but I am unable to figure how to use it on the thankyou page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:18:15+00:00Added an answer on May 25, 2026 at 6:18 pm

    The main reason your example doesn’t work is that in test.xhtml you are posting to yourself. Instead, you should post to the target page. So write the submission as:

    <xforms:submission id="main-submission" method="post" 
        action="/20110920-so-thankyou/"
        ref="instance('form-instance')" validate="false" replace="all"/>
    

    The pattern of posting to yourself, and then determining in page-flow.xml what the next page should be, is considered to be deprecated. It still works, there are still situations where it makes sense, but in the majority of the cases, the cost of the added complexity is higher than the benefits you get from this decoupling.

    Finally, a couple of things very specific to your example:

    • In thankyou.xhtml, you were using <xhtml:output>, which you’ll want to change to <xforms:output>.
    • The XPath expression in the first output should be instance('form-instance')/success/successPageText without form. Remember: instance() returns the root element, not the document element.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a php page that sends an email message with multiple attachments.
I have made a web application that uses master page for Login & Logout
Lets Suppose that I have made a custom authentication module that inherits IHttpModule class.
I have made a page in which i m using a list to display
I have to made a page which will send Email to Newsletter subscribers. There
I have made a simple web-page including a couple of static pages, a css
I have made a drag-to-trigger_event page based on this guide . I'm displaying list
I have made a site where at the bottom of the page there is
I have made a kind of CMS using CodeIgniter. It loads the page content
I have a problem with my self-made search page. There is 2 tables: **name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.