Eric van der Vlist wrote:

That's working nicely, but now I'd like to add a result that would
forward the user in display mode after he's saved, ie something such as:

<page id="edit" path-info="/doc/(.*)/(edit)"
  matcher="oxf:perl5-matcher" xforms="xforms-model.xml" model="model.xpl" 
view="xforms-view.xsl">
  <param ref="/form/document-id"/>
  <param ref="/form/action"/>
  <action when="/form/action = 'save'" action="save-apiculteur.xpl">
    <result page="display"/>
  </action>
</page>

However, when I try that, the server seems most confused and sends the
following error when I hit the save action: Condition failed for every
branch of choose: [/result/matches = 'true']

I think I should be able to do what I want to do with the redirect
processor, but given the note:

"It is recommended, whenever possible, to use the Page Flow Controller
to perform page redirections within a Presentation Server application.
The Page Flow Controller provides a much higher-level abstraction of the
notion of redirection than the Redirect Processor."

I am wondering if this is a case where I should use it.

I am still hoping not!

Also, the redirect processor allows me to perform a client side redirect
which can be considered more friendly to the reload and back buttons
than a server side redirect.

Am I right to think that the PFC doesn't support client side redirect?

No it does. You can control how redirects are done in the PFC (this doc has yet to be moved to the right place):


  http://www.orbeon.com/ois/doc/home-changes-25#pfc

Here you have to make sure the method used is "redirect", either set at the top level of your page-flow.xml, or at the action result level.

Now the PFC is also able to do a redirect to a page using <param> elements, by substituting the parameter names into the correct regexp groups. But you should make sure the value is available in the XForms instance, i.e. when you do your <result page="display"/>, you should also set /form/document-id in the "display" page's XForms instance.

-Erik


------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to