Using XForms classic engine with OPS 3b3.
It looks like OPS has problem with "ref" (or bind) attribute of the "label" and "value" elements of the xforms:item. My select control looks like this: <xforms:select ref="selected-buyer"> <xforms:choices> <xforms:item> <xforms:label ref="./@label"/> <xforms:value ref="."/> </xforms:item> <xforms:itemset nodeset="../buyers/company"> <xforms:label ref="@label"/> <xforms:copy ref="."/> </xforms:itemset> </xforms:choices> </xforms:select> Model looks like this: <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms" > <xforms:instance> <view-concepts> <selected-buyer label="Select All">selectAll</selected-buyer> <buyers> <company label="Global Supply">global</company> </buyers> <show-orders> <new>true</new> <part-fulfill>true</part-fulfill> <fulfilled>false</fulfilled> </show-orders> </view-concepts> </xforms:instance> <xforms:bind id="b_test" nodeset="/view-concepts/selected-buyer/@label"/> <xforms:submission method="post" action="/view-orders" replace="all"/> </xforms:model> ...the rendered view looks like this: Within itemset, the attributes work as expected, but if the label and value elements are not within itemset, the control is not rendered correctly. Is it me, or is this s bug? 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 pastedGraphic2.tiff (9K) Download Attachment |
Administrator
|
Alex,
This should work. Is there any way you could send an example which runs directly in the XForms Sandbox? This would facilitate our looking into the issue. Thanks, -Erik Alexander Zatko wrote: > Using XForms classic engine with OPS 3b3. > > It looks like OPS has problem with "ref" (or bind) attribute of the > "label" and "value" elements of the xforms:item. My select control looks > like this: > > <xforms:select ref="selected-buyer"> > <xforms:choices> > <xforms:item> > <xforms:label ref="./@label"/> > <xforms:value ref="."/> > </xforms:item> > <xforms:itemset nodeset="../buyers/company"> > <xforms:label ref="@label"/> > <xforms:copy ref="."/> > </xforms:itemset> > </xforms:choices> > </xforms:select> > > Model looks like this: > > <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms" > > <xforms:instance> > <view-concepts> > * <selected-buyer label="Select All">selectAll</selected-buyer> > * <buyers> > <company label="Global Supply">global</company> > </buyers> > <show-orders> > <new>true</new> > <part-fulfill>true</part-fulfill> > <fulfilled>false</fulfilled> > </show-orders> > </view-concepts> > </xforms:instance> > <xforms:bind id="b_test" nodeset="/view-concepts/selected-buyer/@label"/> > <xforms:submission method="post" action="/view-orders" replace="all"/> > </xforms:model> > > ...the rendered view looks like this: > > > > > > > Within itemset, the attributes work as expected, but if the label and > value elements are not within itemset, the control is not rendered > correctly. > Is it me, or is this s bug? > > 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 |
Erik, I modified the Address Book example - please replace the
"view.xsl" and "xforms-model.xml" files on your computer with the attached ones and you should be able to reproduce the issue. A. On Dec 21, 2005, at 1:28 PM, Erik Bruchez wrote: > Alex, > > This should work. Is there any way you could send an example which > runs directly in the XForms Sandbox? This would facilitate our looking > into the issue. Thanks, > > -Erik > > Alexander Zatko wrote: >> Using XForms classic engine with OPS 3b3. >> It looks like OPS has problem with "ref" (or bind) attribute of the >> "label" and "value" elements of the xforms:item. My select control >> looks like this: >> <xforms:select ref="selected-buyer"> >> <xforms:choices> >> <xforms:item> >> <xforms:label ref="./@label"/> >> <xforms:value ref="."/> >> </xforms:item> >> <xforms:itemset nodeset="../buyers/company"> >> <xforms:label ref="@label"/> >> <xforms:copy ref="."/> >> </xforms:itemset> >> </xforms:choices> >> </xforms:select> >> Model looks like this: >> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms" > >> <xforms:instance> >> <view-concepts> >> * <selected-buyer label="Select All">selectAll</selected-buyer> >> * <buyers> >> <company label="Global Supply">global</company> >> </buyers> >> <show-orders> >> <new>true</new> >> <part-fulfill>true</part-fulfill> >> <fulfilled>false</fulfilled> >> </show-orders> >> </view-concepts> >> </xforms:instance> >> <xforms:bind id="b_test" >> nodeset="/view-concepts/selected-buyer/@label"/> >> <xforms:submission method="post" action="/view-orders" replace="all"/> >> </xforms:model> >> ...the rendered view looks like this: >> Within itemset, the attributes work as expected, but if the label and >> value elements are not within itemset, the control is not rendered >> correctly. >> Is it me, or is this s bug? >> 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 -- 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
|
Alex,
I can reproduce the problem and I have entered a bug to track this: http://forge.objectweb.org/tracker/index.php?func=detail&aid=304414&group_id=168&atid=350207 However, because this is occurring with XForms Classic and it may not be trivial to fix, we cannot guarantee that we will fix it. -Erik Alexander Zatko wrote: > Erik, I modified the Address Book example - please replace the > "view.xsl" and "xforms-model.xml" files on your computer with the > attached ones and you should be able to reproduce the issue. > > A. > > > > On Dec 21, 2005, at 1:28 PM, Erik Bruchez wrote: > >> Alex, >> >> This should work. Is there any way you could send an example which >> runs directly in the XForms Sandbox? This would facilitate our looking >> into the issue. Thanks, >> >> -Erik >> >> Alexander Zatko wrote: >> >>> Using XForms classic engine with OPS 3b3. >>> It looks like OPS has problem with "ref" (or bind) attribute of the >>> "label" and "value" elements of the xforms:item. My select control >>> looks like this: >>> <xforms:select ref="selected-buyer"> >>> <xforms:choices> >>> <xforms:item> >>> <xforms:label ref="./@label"/> >>> <xforms:value ref="."/> >>> </xforms:item> >>> <xforms:itemset nodeset="../buyers/company"> >>> <xforms:label ref="@label"/> >>> <xforms:copy ref="."/> >>> </xforms:itemset> >>> </xforms:choices> >>> </xforms:select> >>> Model looks like this: >>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms" > >>> <xforms:instance> >>> <view-concepts> >>> * <selected-buyer label="Select All">selectAll</selected-buyer> >>> * <buyers> >>> <company label="Global Supply">global</company> >>> </buyers> >>> <show-orders> >>> <new>true</new> >>> <part-fulfill>true</part-fulfill> >>> <fulfilled>false</fulfilled> >>> </show-orders> >>> </view-concepts> >>> </xforms:instance> >>> <xforms:bind id="b_test" >>> nodeset="/view-concepts/selected-buyer/@label"/> >>> <xforms:submission method="post" action="/view-orders" replace="all"/> >>> </xforms:model> >>> ...the rendered view looks like this: >>> Within itemset, the attributes work as expected, but if the label and >>> value elements are not within itemset, the control is not rendered >>> correctly. >>> Is it me, or is this s bug? >>> 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 > > > ------------------------------------------------------------------------ > > > -- > 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 -- 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 |
That's ok - I just wrapped the "single" <item>s into an itemset
refering to a single node, which works ok as a workaround. thanks A. On Dec 21, 2005, at 6:59 PM, Erik Bruchez wrote: > Alex, > > I can reproduce the problem and I have entered a bug to track this: > > http://forge.objectweb.org/tracker/index.php? > func=detail&aid=304414&group_id=168&atid=350207 > > However, because this is occurring with XForms Classic and it may not > be trivial to fix, we cannot guarantee that we will fix it. > > -Erik > > Alexander Zatko wrote: >> Erik, I modified the Address Book example - please replace the >> "view.xsl" and "xforms-model.xml" files on your computer with the >> attached ones and you should be able to reproduce the issue. >> A. >> On Dec 21, 2005, at 1:28 PM, Erik Bruchez wrote: >>> Alex, >>> >>> This should work. Is there any way you could send an example which >>> runs directly in the XForms Sandbox? This would facilitate our >>> looking into the issue. Thanks, >>> >>> -Erik >>> >>> Alexander Zatko wrote: >>> >>>> Using XForms classic engine with OPS 3b3. >>>> It looks like OPS has problem with "ref" (or bind) attribute of the >>>> "label" and "value" elements of the xforms:item. My select control >>>> looks like this: >>>> <xforms:select ref="selected-buyer"> >>>> <xforms:choices> >>>> <xforms:item> >>>> <xforms:label ref="./@label"/> >>>> <xforms:value ref="."/> >>>> </xforms:item> >>>> <xforms:itemset nodeset="../buyers/company"> >>>> <xforms:label ref="@label"/> >>>> <xforms:copy ref="."/> >>>> </xforms:itemset> >>>> </xforms:choices> >>>> </xforms:select> >>>> Model looks like this: >>>> <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms" > >>>> <xforms:instance> >>>> <view-concepts> >>>> * <selected-buyer label="Select All">selectAll</selected-buyer> >>>> * <buyers> >>>> <company label="Global Supply">global</company> >>>> </buyers> >>>> <show-orders> >>>> <new>true</new> >>>> <part-fulfill>true</part-fulfill> >>>> <fulfilled>false</fulfilled> >>>> </show-orders> >>>> </view-concepts> >>>> </xforms:instance> >>>> <xforms:bind id="b_test" >>>> nodeset="/view-concepts/selected-buyer/@label"/> >>>> <xforms:submission method="post" action="/view-orders" >>>> replace="all"/> >>>> </xforms:model> >>>> ...the rendered view looks like this: >>>> Within itemset, the attributes work as expected, but if the label >>>> and value elements are not within itemset, the control is not >>>> rendered correctly. >>>> Is it me, or is this s bug? >>>> 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 >> ---------------------------------------------------------------------- >> -- >> -- >> 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 > > > -- > 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 -- 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 |
Free forum by Nabble | Edit this page |