Template Error "Duplicate id for XForms element: section-1-component"

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

Template Error "Duplicate id for XForms element: section-1-component"

aitor
I'm doing a generic template (library) that is application = 'orbeon' and the form = 'library'. And other template especific for the application. And when I create a form in the template's application and try to insert information in the form runner. It's giving me this error: "Duplicate id for XForms element: section-1-component" could anyone help me to solve this error? I have tried to delete all the forms in the table ORBEON_FORM_DEFINITION (I'm using Oracle as data base). But It continues giving me this error. It seems that when the form have two templates (generic template and application template) it duplicates the section.
Reply | Threaded
Open this post in threaded view
|

Re: Template Error "Duplicate id for XForms element: section-1-component"

Alessandro  Vernet
Administrator
Hi,

This issue is now fixed in the latest nightly builds. If you get a chance to try a new nightly, you'll let us know if it works for you.

https://github.com/orbeon/orbeon-forms/commit/6df1f8f377372b1257269765c889669ec2c3e1b3

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Template Error "Duplicate id for XForms element: section-1-component"

lacco
Hi Alex,

for me the issue hasn't been solved through 6df1f8 . I have forms created with orbeon 3.8, and when editing them with orbeon master, I get errors like "Duplicate id for XForms element: section-1-bind". I think commit 423bb22c caused this issue: Identifying sections is since then based on names, but my old forms don't have names ('<xforms:bind id="section-1-bind" nodeset="section-1">' instead of '<xforms:bind id="section-1-bind" nodeset="section-1" name="section-1">'). I assume there should be some kind of fallback if no name is found - any ideas?

Thx!