RE: Model inside the view

Posted by Ryan Puddephatt on
URL: https://discuss.orbeon.com/Model-inside-the-view-tp26923p26930.html

Tania,
        If you have the model within the view-travel.xsl file then you don't
need the xforms attribute. Try removing it!

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: Tania Magnenat [mailto:[hidden email]]
>Sent: 18 January 2006 11:12
>To: [hidden email]
>Subject: [ops-users] Model inside the view
>
>Hi everybody!
>
>How to update (in the page flow) a xforms model when the model is inside
>the view?
>If the model is separated from the view, I have no problem (the xforms
>model is updated correctly with data from the previous model), but when
>the model is inside the view it doesn't works.
>
>Page flow example where the update works:
>=========================================
>
><page id="travel" path-info="/travel" model="model-travel.xpl"
>xforms="form-travel.xml" view="view-travel.xsl">
> <action when="/*/action='add-travel'">
> <result page="add-travel">
> <xu:update select="/form/id">
> <xu:value-of
>select="document('input:instance')/*/document/ProjectID"/>
> </xu:update>
> </result>
> </action>
></page>
><page id="add-travel" path-info="/add-travel" xforms="/travel/form.xml"
>view="/travel/view.xhtml"/>
>
>
>Page flow example where the update doesn't works:
>================================================
>
><page id="travel" path-info="/travel" model="model-travel.xpl"
>xforms="form-travel.xml" view="view-travel.xsl">
> <action when="/*/action='add-travel'">
> <result page="add-travel">
> <xu:update select="/form/id">
> <xu:value-of
>select="document('input:instance')/*/document/ProjectID"/>
> </xu:update>
> </result>
> </action>
></page>
><page id="add-travel" path-info="/add-travel" view="/travel/view.xhtml"/>
>
>
>Thanks in advance!
>
>Tania
>
>P.S: I'm using OPS 3.0 beta 4




--
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