Detecting changes on model

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Detecting changes on model

TonyI
Dear all,

Relatively new to Orbeon/Xforms. I'm trying to detect changes to part of an instance, but no controls are bound to the instance, instead it is updated directly via calculations.

Is there any way to detect the changes?


- Tony
Reply | Threaded
Open this post in threaded view
|

Re: Detecting changes on model

Hank Ratzesberger

Hi Tony,

A hidden control (style="display: none") is one way.

XForms can utilize DOM observers and listeners... sorry I can't
be much help with that or refer you to examples.

--Hank

On Sep 14, 2009, at 9:49 PM, TonyI wrote:

>
> Dear all,
>
> Relatively new to Orbeon/Xforms. I'm trying to detect changes to  
> part of an
> instance, but no controls are bound to the instance, instead it is  
> updated
> directly via calculations.
>
> Is there any way to detect the changes?
>
>
> - Tony
> --
> View this message in context: http://www.nabble.com/Detecting- 
> changes-on-model-tp25447748p25447748.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Detecting changes on model

Alessandro Vernet
Administrator
Tony,

On Mon, Sep 21, 2009 at 1:45 PM, Hank Ratzesberger
<[hidden email]> wrote:
> A hidden control (style="display: none") is one way.

Like Hank said you can use a control (like an <xforms:output>) with a
style="display: none". You can also use an <xforms:group
appearance="xxforms:internal">, so no markup is generate in the page.
And soon, you will be able to use an event handler inside an
<xxforms:variable>, as it is arguable as whether group should hold a
value and hence generate xforms-value-changed events.

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws