Just a quick mail to say we figured out how to do this. For anyone
interested, in the page flow we now have:
<page id="editpea" path-info="/editpea.html">
<action action="/edit-entry-point/redirect.xpl">
<result page="edit">
<xu:update select="/form/ui/id">
<xu:value-of select="doc('oxf:action')/id"/>
</xu:update>
<xu:update select="/form/ui/action">load</xu:update>
<xu:update
select="/form/ui/operation">edit</xu:update>
</result>
</action>
</page>
where the contents of the redirect.xpl file are pretty much the same as
the model.xpl we had before.
David Sinclair.
----- Original Message -----
From: [EMAIL PROTECTED]
Date: Thursday, December 2, 2004 11:57 am
Subject: [orbeon-user] email links
> Hi,
>
> In our application we need to provide email links to pages that we
> havealready implemented. For example, we have a page that loads a
> documentbased on an id in the instance, call this page 'edit'. We
> want to
> implement a page which will take an 'id' param from a url and forward
> the user onto the edit page with the id inserted into the instance,
> callthis page 'edit-entry-point'.
>
> To do this we tried making a page with only a model. This model uses
> the oxf:request processor to get the id param and then constructs an
> instance suitable for the edit page:
>
> <p:processor name="oxf:request">
> <p:input name="config">
> <config>
> <include>
> /request/parameters/parameter[name='id']
> </include>
> </config>
> </p:input>
> <p:output name="data" id="request"
> </p:processor>
>
> <p:processor name="oxf:xslt"
> xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input
> name="config"> <form xsl:version="2.0">
> <ui>
> <id>
> <xsl:value-of
> select="/request/parameters/parameter[name='id']/value"/>
> </id>
> </ui>
> </form>
> </p:input>
> <p:input name="data" href="#request"/>
> <p:output name="data" ref="instance"/>
> </p:processor>
>
> And then in the page view controller we have:
>
> <page id="edit-entry-point" path-info="/editpea.html"
> model="/edit-entry-point/model.xpl">
> <action when="/form/ui/id">
> <result page="edit">
> <xu:update select="/form/ui/id">
> <xu:value-of
> select="doc('oxf:instance')/form/ui/id"/>
> </xu:update>
> </result>
>
> </page>
>
> However, the action never seems to get executed. What are we doing
> wrong here? It seems that the page flow never reads the indstance from
> the model...
>
> David Sinclair.
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
> users.Discover which products truly live up to the hype. Start
> reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> orbeon-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/orbeon-user
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user