element value change event

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

element value change event

Jurgis Lukss
Hi,

How can I catch an "xforms-value-changed" event of instance's element, that's not output in XForms page? For example, if I have following instance data:
<root>
    <element1></element1>
    <element2></element2>
</root>

and -

    <xforms:bind ref="element2" calculate="element1" />

In this exmaple element1 is output using xforms:input control, but element2 is only used for submission. And I want to initiate xforms:action on element's "element2" value change, that might happen when user changes value of xforms:input control.
Only solution I found - is to use xforms:group with single node reference to element2 anywhere in page and put xforms:action under it, like that:

<xforms:group ref="element2">
   <xforms:action ev:event="xforms-value-changed">
         ......
   </xforms:action>
</xfroms:group>

But it won't work in Orbeon, because of this bugfix - http://forge.objectweb.org/tracker/index.php?func=detail&group_id=168&atid=350207&aid=306832

Is there any other way?


Thanks,

jurgis


--
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
Reply | Threaded
Open this post in threaded view
|

Re: element value change event

Alessandro Vernet
Administrator
Hi Jurgis,

On 5/28/07, jurgis <[hidden email]> wrote:
> How can I catch an "xforms-value-changed" event of instance's element,
> that's not output in XForms page?

You need to have an XForms control on the page, because
xforms-value-changed is only dispatched to form controls according to
the XForms specification. But you can hide the form control on the
page by adding a CSS "display: none" on that form control (say
xforms:output).

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws