populate instance on demand?

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

populate instance on demand?

Manesh Kumar
Hi,

Is it possible to trigger an xforms:submission to update instance data as
the tree is explored? Is there an event is fired when node is expanded that
can have a listener implemented to do an <xforms:send> ? Obviously this is a
bit limited by not being able to do a partial replace on submission, but
perhaps using the insert/delete events you could simulate this, otherwise
replacing the whole document isn't so bad, since it doesn't get send to the
client anyway.

If there isn't, perhaps it wouldn't be too difficult instrument the yahoo
tree widget to fire custom xxforms tree expand events (since I can't see
which standard XForms event would be appropriate).. ?

regards :-) ,
manesh

_________________________________________________________________
Sign in and get updated on all the action from Formula One
http://content.msn.co.in/Sports/FormulaOne/Default




--
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: populate instance on demand?

Erik Bruchez
Administrator
Manesh,

Currently, no events are fired as you work with the tree except
xforms-value-changed when you select a value in incremental mode. So you
cannot detect expands/collapses.

I don't think it would be very hard to implement though, but you
probably want these events to be optional for the cases where you don't
need them, for performance reasons.

Note that currently the structure of the tree cannot be updated past
xforms-ready, but this will likely be fixed this week:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=306991&group_id=168&atid=350207

-Erik

Manesh Kumar wrote:

> Hi,
>
> Is it possible to trigger an xforms:submission to update instance data
> as the tree is explored? Is there an event is fired when node is
> expanded that can have a listener implemented to do an <xforms:send> ?
> Obviously this is a bit limited by not being able to do a partial
> replace on submission, but perhaps using the insert/delete events you
> could simulate this, otherwise replacing the whole document isn't so
> bad, since it doesn't get send to the client anyway.
>
> If there isn't, perhaps it wouldn't be too difficult instrument the
> yahoo tree widget to fire custom xxforms tree expand events (since I
> can't see which standard XForms event would be appropriate).. ?
>
> regards :-) ,
> manesh
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
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