Re: Event Handling within nested XBL components
Posted by
Philip.Cantin on
Jul 22, 2009; 10:41pm
URL: https://discuss.orbeon.com/Event-Handling-within-nested-XBL-components-tp45002p45006.html
Alex,
Sorry for not being more clear; my use case was referring to the sandbox example that I attached as a ZIP at the beginning of this thread (xforms-xbl-test.zip).
The obstacle I'm trying to overcome can be reproduced with the following steps:
1) Open the ZIP file (I'll re-attach it below this message), copy the folder and run it in Orbeon.
2) Type "hello" within the text area.
3) Click the icon next to the text area - this will pop up a rich text editor. The word "hello" should be the value of the instance('yui-info')/tmp node.
4) Type "goodbye" and then click the 'Update' button within the editor.
The value "goodbye" is saved to the <tmp> node of the 'yui-info' instance, but the value "hello" remains in the text area. I imagine there must be something wrong with my <xf:setvalue> statement. In addition, I would also like the value of the text area to appear in the rich text editor whenever it is loaded.
I know, at least, that test_xforms.xhtml (my main XHTML form) is getting the value of the <title> node within the nested XBL components. I just want to be able to have that value of the text area loaded into the RTE, update that value, and have it display properly in the text area.
If there's anything else you need to know, please let me know! And thank you in advance, Alex!
---Philip
xforms-xbl-test.zip
Alessandro Vernet wrote
Philip,
Philip.Cantin wrote
While this bug is being investigated, I was wondering if it was possible to somehow "capture" the context being passed to the main form's <xxforms:dialog> control from the nested XBL component, and use it in an <xforms:setvalue> statement within the main form. I was able to do this once using the 'xxforms-dialog-open' event inside <xforms:setvalue>, but I can't seem to reference that context a second time outside of the 'xxforms-dialog-open' event.
You're talking about "capturing the context being passed to the main form's <xxforms:dialog> control from the nested XBL component". Is the dialog opened from within the XBL? I am afraid I don't quite get it. Would you have a very minimal example showing what you are trying to do and where the problem lies?
Alex