Hi, I have downloaded the nightly build of ops.war and tried to
develop an ops application. One difference I noted is that for all the
<xforms:output> which is not bound to any instance, all the instance
elements gets appended to the <xforms:label> of the <xforms:output>
node. Ie, suppose I have an <xforms:output> node like: <xforms:output> <xforms:label>First
Name</xforms:label> </xforms:output> And an instance <xforms:instance> <main> <name>Jency</name> <age>20</age> </main> </xforms:instance> When this is rendered, the label will appear as following: First Name Jency 20 But if the it is bound to a specific instance as
<xforms:output ref=”/main/namelabel”/> then it works as
expected. Is this a modification made in the new version? Is this the
correct behavior? Thanks in advance Jency -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Hi Jency,
That's a funny one, but I don't think this is new behavior in Orbeon Forms. In fact, xforms:output must have either a @ref or a @value attribute. It is not allowed to miss both these attributes. What happens in your case is that it behaves as if you wrote ref=".", and it returns the string value of the element. Note that in XForms 1.1, we have made it clearer that a control cannot even be bound to complex content this way. I entered and fixed this bug so that you are no longer allowed to miss both @ref and @value: http://forge.objectweb.org/tracker/index.php?func=detail&aid=307690&group_id=168&atid=350207 -Erik Jency Thomas wrote: > Hi, > > I have downloaded the nightly build of ops.war and tried to develop an > ops application. One difference I noted is that for all the > <xforms:output> which is not bound to any instance, all the instance > elements gets appended to the <xforms:label> of the <xforms:output> > node. Ie, suppose I have an <xforms:output> node like: > > <xforms:output> > > <xforms:label>First Name</xforms:label> > > </xforms:output> > > > > And an instance > > > > <xforms:instance> > > <main> > > <name>Jency</name> > > <age>20</age> > > </main> > > </xforms:instance> > > > > When this is rendered, the label will appear as following: > > > > First Name Jency 20 > > > > But if the it is bound to a specific instance as <xforms:output > ref=”/main/namelabel”/> then it works as expected. > > > > Is this a modification made in the new version? Is this the correct > behavior? > > > > Thanks in advance > > Jency > > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
In the ops version 3.5.1, the ref/value attribute was not mandatory for xforms:output and it works by rendering the xforms:label inside xforms:output. I usually use this for rendering static labels. If ref/value is mandatory, then how do we render static labels? Do we need to add these static values to some instance nodes and bind the output to them? Or is there any other way to do so? Thanks in advance Jency -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Tuesday, October 16, 2007 4:36 AM To: [hidden email] Subject: Re: [ops-users] xforms:output in the nightly build Hi Jency, That's a funny one, but I don't think this is new behavior in Orbeon Forms. In fact, xforms:output must have either a @ref or a @value attribute. It is not allowed to miss both these attributes. What happens in your case is that it behaves as if you wrote ref=".", and it returns the string value of the element. Note that in XForms 1.1, we have made it clearer that a control cannot even be bound to complex content this way. I entered and fixed this bug so that you are no longer allowed to miss both @ref and @value: http://forge.objectweb.org/tracker/index.php?func=detail&aid=307690&grou p_id=168&atid=350207 -Erik Jency Thomas wrote: > Hi, > > I have downloaded the nightly build of ops.war and tried to develop an > ops application. One difference I noted is that for all the > <xforms:output> which is not bound to any instance, all the instance > elements gets appended to the <xforms:label> of the <xforms:output> > node. Ie, suppose I have an <xforms:output> node like: > > <xforms:output> > > <xforms:label>First Name</xforms:label> > > </xforms:output> > > > > And an instance > > > > <xforms:instance> > > <main> > > <name>Jency</name> > > <age>20</age> > > </main> > > </xforms:instance> > > > > When this is rendered, the label will appear as following: > > > > First Name Jency 20 > > > > But if the it is bound to a specific instance as <xforms:output > ref="/main/namelabel"/> then it works as expected. > > > > Is this a modification made in the new version? Is this the correct > behavior? > > > > Thanks in advance > > Jency > > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Jency,
On 10/15/07, Jency Thomas <[hidden email]> wrote: > In the ops version 3.5.1, the ref/value attribute was not mandatory for > xforms:output and it works by rendering the xforms:label inside > xforms:output. I usually use this for rendering static labels. If > ref/value is mandatory, then how do we render static labels? Do we need > to add these static values to some instance nodes and bind the output to > them? Or is there any other way to do so? Are you saying that you were using this just to render a label, and didn't expect the <xforms:output> to display anything coming from an instance? If this is the case, I guess you can write <xforms:output value="''"/>. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.com/ -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |