"newItemDelimiter is null" when using an XBL document to insert nodes within nested repeats

1 message Options
Embed this post
Permalink
Philip.Cantin

"newItemDelimiter is null" when using an XBL document to insert nodes within nested repeats

Reply Threaded More More options
Print post
Permalink
Hi All,

I created an XBL file to be used several times in the main XHTML document I am working with. The XBL file is XIncluded in the <head> section of the document, and the binding is used once. It contains an <xbl:template> which includes XForms code involving nested repeats. In addition, the binding is placed within a nested repeat in the XHTML document itself.

I've got this working somewhat; deleting nodes seems to work okay, but inserting nodes runs into problems. For example, when trying to add another section, I get this error:


Exception in client-side code.

    * Message: newItemDelimiter is null
    * File: http://localhost:9090/orbeon/xforms-server/xforms-autocomplete-yuirte-dialog-yuicalendar-min.js
    * Line number: 90


What's interesting is that after I close the error message window, the new section "looks" like it was added successfully, and the nodes are added successfully when checking the Instance Inspector. However, I can't enter new information within the new sections.

Is there a workaround for this, or am I doing something incorrectly? I'm trying to follow the <xf:dispatch> event listener example as provided by http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components-guide .

To reproduce this error, load "test_xbl_triggers.xhtml" from within the zip file attached to this message, and press the green "+" icon next to the "Series Information" section.

Also, if there's a better way to design XBL components that involve nested repeats (other than what I have), I'd appreciate any sage advice. :-)


---Philip


test_xbl_triggers.zip