Hi,
In our application we need to provide email links to pages that we have
already implemented. For example, we have a page that loads a document
based 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, call
this 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>
</action>
</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