xforms-modelconstruct-done instead of xforms-ready question

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

xforms-modelconstruct-done instead of xforms-ready question

martin groenewegen
Hi All,

In some of my xforms I replaced the xforms-ready action (to perform some initialization action), by an xforms-model-construct-done action, because of performance reasons.
Here I encounter a problem with the toggles, inside the action.
The result of a toggle  performed inside a xforms-model-construct-done action are not seen inside the form, while a toggle performed inside an xforms-ready action is seen inside the xforms.
Should I do the toggles inside a xforms-ready action, or is something else wrong?

Thanks,

Martin
Reply | Threaded
Open this post in threaded view
|

Re: xforms-modelconstruct-done instead of xforms-ready question

Erik Bruchez
Administrator
> In some of my xforms I replaced the xforms-ready action (to perform  

> some
> initialization action), by an xforms-model-construct-done action,  
> because of
> performance reasons.
> Here I encounter a problem with the toggles, inside the action.
> The result of a toggle  performed inside a xforms-model-construct-done
> action are not seen inside the form, while a toggle performed inside  
> an
> xforms-ready action is seen inside the xforms.
> Should I do the toggles inside a xforms-ready action, or is  
> something else
> wrong?
Good question, and yes, that's what you have to do, because when  
xforms-model-construct-done is called, the controls do not yet exist!

The XForms spec is not clear about what should happen there, but we  
assumed that since the controls are not yet there, toggle and other UI-
related actions should just NOP.

-Erik

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