Hi all,
I ran into the following error after adding a SELECT1 to my form: XForms error: Number of instances (2) doesn't match number of instances in models (3). See code snippet below. I am using the OPS 3 beta 3 (nightly build from a 17 Nov). Any clues? - Dan Code snippet: <!-- ... in the head tag ... --> <!-- /*=======================================================*/ /* Picklists */ /*=======================================================*/ --> <xforms:instance id="my-list"> <itemx value="item1"> <label>ITEM 1</label> </itemx> <itemx value="item2"> <label>ITEM 2</label> </itemx> </xforms:instance> <!-- ... in the body tag ... --> <xhtml:p> <xforms:select1 ref="instance('ifm')/fm:fieldSet/fm:fieldOne" appearance="minimal"> <xforms:label class="fixed-width">Field name:</xforms:label> <xforms:itemset nodeset="instance('my-list')/itemx"> <xforms:label ref="label"/> <xforms:value ref="@value"/> </xforms:itemset> </xforms:select1> </xhtml:p> -- 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 |
Administrator
|
Hi Dan,
Do you have an instance with id="ifm"? It is referenced in the select1, but I don't see it in the model. If you have that instance, would it be possible to see the whole XForms file so we can run it locally an reproduce the problem? Alex On 11/25/05, [hidden email] <[hidden email]> wrote: > Hi all, > > I ran into the following error after adding a SELECT1 to my form: > > XForms error: Number of instances (2) doesn't match number of instances in models (3). > > See code snippet below. I am using the OPS 3 beta 3 (nightly build from a 17 Nov). > > Any clues? > > - Dan > > > Code snippet: > > <!-- ... in the head tag ... --> > > <!-- > /*=======================================================*/ > /* Picklists */ > /*=======================================================*/ > --> > > <xforms:instance id="my-list"> > <itemx value="item1"> > <label>ITEM 1</label> > </itemx> > <itemx value="item2"> > <label>ITEM 2</label> > </itemx> > </xforms:instance> > > <!-- ... in the body tag ... --> > > <xhtml:p> > <xforms:select1 ref="instance('ifm')/fm:fieldSet/fm:fieldOne" appearance="minimal"> > <xforms:label class="fixed-width">Field name:</xforms:label> > <xforms:itemset nodeset="instance('my-list')/itemx"> > <xforms:label ref="label"/> > <xforms:value ref="@value"/> > </xforms:itemset> > </xforms:select1> > </xhtml:p> > > > > > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
I have noticed this issue sometimes when changing the XForms source and
just reloading, while a shift-reload (ctrl-f5 w/ IE) fixes the issue. -Erik Alessandro Vernet wrote: > Hi Dan, > > Do you have an instance with id="ifm"? It is referenced in the > select1, but I don't see it in the model. If you have that instance, > would it be possible to see the whole XForms file so we can run it > locally an reproduce the problem? > > Alex > > On 11/25/05, [hidden email] <[hidden email]> wrote: > >>Hi all, >> >>I ran into the following error after adding a SELECT1 to my form: >> >>XForms error: Number of instances (2) doesn't match number of instances in models (3). >> >>See code snippet below. I am using the OPS 3 beta 3 (nightly build from a 17 Nov). >> >>Any clues? >> >>- Dan >> >> >>Code snippet: >> >><!-- ... in the head tag ... --> >> >><!-- >> /*=======================================================*/ >> /* Picklists */ >> /*=======================================================*/ >>--> >> >><xforms:instance id="my-list"> >> <itemx value="item1"> >> <label>ITEM 1</label> >> </itemx> >> <itemx value="item2"> >> <label>ITEM 2</label> >> </itemx> >></xforms:instance> >> >><!-- ... in the body tag ... --> >> >><xhtml:p> >> <xforms:select1 ref="instance('ifm')/fm:fieldSet/fm:fieldOne" appearance="minimal"> >> <xforms:label class="fixed-width">Field name:</xforms:label> >> <xforms:itemset nodeset="instance('my-list')/itemx"> >> <xforms:label ref="label"/> >> <xforms:value ref="@value"/> >> </xforms:itemset> >> </xforms:select1> >></xhtml:p> -- 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 |
In reply to this post by Alessandro Vernet
Hi Alex,
I would probably have to give you a whole little package as my form is all tied in with the custom pipeline Ivan built. Should I just zip that up and send it to you? Or should I just give you the model file which "ifm" is instancing? Erik's advice did handle the error message, but the SELECT1 still doesn't populate. - Dan Note to Erik: Thanks, you were correct, the error went away from using Ctrl + F5. Now I just need to figure out why I can't get the ITEMSET to list in my SELECT1. -- 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 |
Administrator
|
On 11/25/05, [hidden email] <[hidden email]> wrote:
> I would probably have to give you a whole little package as > my form is all tied in with the custom pipeline Ivan built. > > Should I just zip that up and send it to you? Or should I just > give you the model file which "ifm" is instancing? Dan, You can create a small package so I can run that locally. I already have some of your files, but it doesn't hurt getting them again as my copy might be obsolete. > Erik's advice did handle the error message, but the SELECT1 > still doesn't populate. I am just curious: did you get this error doing a reload on IE or Firefox? Alex -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |