Hi,
xforms:output/@model doesn't seem to behave like I would have expected :) !!! The following form: <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:i="http://ns/xmlfr.org/example"> <head> <title>Using a different model in xforms:output</title> <xforms:model id="default"> <xforms:instance> <i:instance> <i:title>Title in the default instance</i:title> </i:instance> </xforms:instance> <xforms:submission id="mySubmit" action="" method="put"/> </xforms:model> <xforms:model id="other"> <i:instance> <i:title>Title in the other instance</i:title> </i:instance> </xforms:model> </head> <body> <p>Top level: "<xforms:output model="other" href="i:title"/>"</p> <xforms:group model="default"> <p>Within a group: "<xforms:output model="other" href="i:title"/>"</p> <p> <xforms:input ref="i:title"> <xforms:label> As a label: "<xforms:output model="other" href="i:title"/>" </xforms:label> </xforms:input> </p> </xforms:group> </body> </html> Gives: +++++++++++++++++++++++++++++++++++++++++++++++++ Top level: " " Within a group: " " As a label: " Title in the default instance" +++++++++++++++++++++++++++++++++++++++++++++++++ Am I missing something? Thanks, Eric
-- 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 signature.asc (196 bytes) Download Attachment |
And if I replace xforms:output/@href xforms:output/@value:
<?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:i="http://ns/xmlfr.org/example"> <head> <title>Using a different model in xforms:output</title> <xforms:model id="default"> <xforms:instance> <i:instance> <i:title>Title in the default instance</i:title> </i:instance> </xforms:instance> <xforms:submission id="mySubmit" action="" method="put"/> </xforms:model> <xforms:model id="other"> <i:instance> <i:title>Title in the other instance</i:title> </i:instance> </xforms:model> </head> <body> <p>Top level: "<xforms:output model="other" value="i:title"/>"</p> <xforms:group model="default"> <p>Within a group: "<xforms:output model="other" value="i:title"/>"</p> <p> <xforms:input ref="i:title"> <xforms:label> As a label: "<xforms:output model="other" value="i:title"/>" </xforms:label> </xforms:input> </p> </xforms:group> </body> </html> I get: Top level: " Title in the default instance" Within a group: " Title in the default instance" As a label: " " !!! Eric Le jeudi 09 novembre 2006 à 22:26 +0100, Eric van der Vlist a écrit : Hi,
-- 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 signature.asc (196 bytes) Download Attachment |
Eric,
I believe the attribute you were looking for is
@ref rather than @href
Ryan
Ryan
Puddephatt
-- 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 |
Hi Ryan,
Le vendredi 10 novembre 2006 à 10:03 +0000, Ryan Puddephatt a écrit : > Eric, > I believe the attribute you were looking for is @ref rather than > @href Of course, you're right, I shouldn't have been working that late :) ! But the issue stands for the case where I am using @value attributes and furthermore, if you use @ref attributes, you get a s java.lang.NullPointerException in org.orbeon.oxf.xforms.XFormsControls getCurrentNodeset XFormsControls.java 547 !!! Eric > Ryan > > Ryan Puddephatt > Software Engineer > > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > w> www.teleflex.com > > > > > > > ______________________________________________________________ > From: Eric van der Vlist [mailto:[hidden email]] > Sent: 09 November 2006 21:32 > To: [hidden email] > Subject: Re: [ops-users] Support of xforms:output/@model > > > > And if I replace xforms:output/@href xforms:output/@value: > > <?xml version="1.0"?> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:i="http://ns/xmlfr.org/example"> > <head> > <title>Using a different model in xforms:output</title> > > <xforms:model id="default"> > <xforms:instance> > <i:instance> > <i:title>Title in the default instance</i:title> > </i:instance> > </xforms:instance> > <xforms:submission id="mySubmit" action="" > method="put"/> > </xforms:model> > > <xforms:model id="other"> > <i:instance> > <i:title>Title in the other instance</i:title> > </i:instance> > </xforms:model> > </head> > > <body> > <p>Top level: "<xforms:output model="other" > value="i:title"/>"</p> > <xforms:group model="default"> > <p>Within a group: "<xforms:output model="other" > value="i:title"/>"</p> > <p> > <xforms:input ref="i:title"> > <xforms:label> As a label: "<xforms:output > model="other" value="i:title"/>" </xforms:label> > </xforms:input> > </p> > </xforms:group> > </body> > </html> > > I get: > > Top level: " Title in the default instance" > > Within a group: " Title in the default instance" > > As a label: " " > > !!! > > Eric > > Le jeudi 09 novembre 2006 à 22:26 +0100, Eric van der Vlist a > écrit : > > Hi, > > > > xforms:output/@model doesn't seem to behave like I would > > have expected :) !!! > > > > The following form: > > > > <?xml version="1.0"?> > > <html xmlns="http://www.w3.org/1999/xhtml" > > xmlns:xforms="http://www.w3.org/2002/xforms" > > xmlns:i="http://ns/xmlfr.org/example"> > > <head> > > <title>Using a different model in xforms:output</title> > > > > <xforms:model id="default"> > > <xforms:instance> > > <i:instance> > > <i:title>Title in the default instance</i:title> > > </i:instance> > > </xforms:instance> > > <xforms:submission id="mySubmit" action="" > > method="put"/> > > </xforms:model> > > > > <xforms:model id="other"> > > <i:instance> > > <i:title>Title in the other instance</i:title> > > </i:instance> > > </xforms:model> > > </head> > > > > <body> > > <p>Top level: "<xforms:output model="other" > > href="i:title"/>"</p> > > <xforms:group model="default"> > > <p>Within a group: "<xforms:output model="other" > > href="i:title"/>"</p> > > <p> > > <xforms:input ref="i:title"> > > <xforms:label> As a label: "<xforms:output > > model="other" href="i:title"/>" </xforms:label> > > </xforms:input> > > </p> > > </xforms:group> > > </body> > > </html> > > > > Gives: > > > > +++++++++++++++++++++++++++++++++++++++++++++++++ > > > > Top level: " " > > > > Within a group: " " > > > > As a label: " Title in the default instance" > > > > +++++++++++++++++++++++++++++++++++++++++++++++++ > > > > Am I missing something? > > > > Thanks, > > > > Eric > > -- > > GPG-PGP: 2A528005 > > If you have a XML document, you have its schema. > > http://examplotron.org > > ------------------------------------------------------------------------ > > Eric van der Vlist http://xmlfr.org http://dyomedea.com > > (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax > > (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema > > ------------------------------------------------------------------------ > -- > GPG-PGP: 2A528005 > Curious about Relax NG? Read my book online. > http://books.xmlschemata.org/relaxng/ > ------------------------------------------------------------------------ > Eric van der Vlist http://xmlfr.org http://dyomedea.com > (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax > (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema > ------------------------------------------------------------------------ > pièce jointe document plein texte (message-footer.txt) > -- > 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 Le premier annuaire des apiculteurs 100% XML! http://apiculteurs.info/ ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema ------------------------------------------------------------------------ -- 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 signature.asc (196 bytes) Download Attachment |
Administrator
|
In reply to this post by Eric van der Vlist
Eric,
Good catch, that wasn't handled correctly. It's fixed now in CVS. Note that you have a bug in your "other" model: you forgot xforms:instance there. -Erik Eric van der Vlist wrote: > And if I replace xforms:output/@href xforms:output/@value: > > <?xml version="1.0"?> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:i="http://ns/xmlfr.org/example"> > <head> > <title>Using a different model in xforms:output</title> > > <xforms:model id="default"> > <xforms:instance> > <i:instance> > <i:title>Title in the default instance</i:title> > </i:instance> > </xforms:instance> > <xforms:submission id="mySubmit" action="" method="put"/> > </xforms:model> > > <xforms:model id="other"> > <i:instance> > <i:title>Title in the other instance</i:title> > </i:instance> > </xforms:model> > </head> > > <body> > <p>Top level: "<xforms:output model="other" value="i:title"/>"</p> > <xforms:group model="default"> > <p>Within a group: "<xforms:output model="other" > value="i:title"/>"</p> > <p> > <xforms:input ref="i:title"> > <xforms:label> As a label: "<xforms:output model="other" > value="i:title"/>" </xforms:label> > </xforms:input> > </p> > </xforms:group> > </body> > </html> > > I get: > > Top level: " Title in the default instance" > > Within a group: " Title in the default instance" > > As a label: " " > > !!! > > Eric > > Le jeudi 09 novembre 2006 à 22:26 +0100, Eric van der Vlist a écrit : >> Hi, >> >> xforms:output/@model doesn't seem to behave like I would have expected >> :) !!! >> >> The following form: >> >> <?xml version="1.0"?> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:xforms="http://www.w3.org/2002/xforms" >> xmlns:i="http://ns/xmlfr.org/example"> >> <head> >> <title>Using a different model in xforms:output</title> >> >> <xforms:model id="default"> >> <xforms:instance> >> <i:instance> >> <i:title>Title in the default instance</i:title> >> </i:instance> >> </xforms:instance> >> <xforms:submission id="mySubmit" action="" method="put"/> >> </xforms:model> >> >> <xforms:model id="other"> >> <i:instance> >> <i:title>Title in the other instance</i:title> >> </i:instance> >> </xforms:model> >> </head> >> >> <body> >> <p>Top level: "<xforms:output model="other" href="i:title"/>"</p> >> <xforms:group model="default"> >> <p>Within a group: "<xforms:output model="other" >> href="i:title"/>"</p> >> <p> >> <xforms:input ref="i:title"> >> <xforms:label> As a label: "<xforms:output model="other" >> href="i:title"/>" </xforms:label> >> </xforms:input> >> </p> >> </xforms:group> >> </body> >> </html> >> >> Gives: >> >> +++++++++++++++++++++++++++++++++++++++++++++++++ >> >> Top level: " " >> >> Within a group: " " >> >> As a label: " Title in the default instance" >> >> +++++++++++++++++++++++++++++++++++++++++++++++++ >> >> Am I missing something? >> >> Thanks, >> >> Eric >> -- >> GPG-PGP: 2A528005 >> If you have a XML document, you have its schema. >> http://examplotron.org >> ------------------------------------------------------------------------ >> Eric van der Vlist http://xmlfr.org http://dyomedea.com >> (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax >> (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema >> ------------------------------------------------------------------------ >> > -- > GPG-PGP: 2A528005 > Curious about Relax NG? Read my book online. > http://books.xmlschemata.org/relaxng/ > ------------------------------------------------------------------------ > Eric van der Vlist http://xmlfr.org http://dyomedea.com > (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax > (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > -- > 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 -- Orbeon Forms - XForms Everywhere 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 |
In reply to this post by Eric van der Vlist
Erik,
Sorry I hadn't scrolled down far enough :-) Maybe I should have more coffee in the morning. The xforms:label/@value should be "." because the xforms:input takes the context of i:title with @ref, but with the @ref causing a NPE, it took me a while, but I noticed you didn't have an xforms:instance surrounding your data, strange that is should have worked at all :-) Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Eric van der Vlist [mailto:[hidden email]] >Sent: 10 November 2006 10:22 >To: [hidden email] >Subject: RE: [ops-users] Support of xforms:output/@model > >Hi Ryan, > >Le vendredi 10 novembre 2006 à 10:03 +0000, Ryan Puddephatt a écrit : >> Eric, >> I believe the attribute you were looking for is @ref rather than >> @href > >Of course, you're right, I shouldn't have been working that late :) ! > >But the issue stands for the case where I am using @value >attributes and furthermore, if you use @ref attributes, you >get a s java.lang.NullPointerException in >org.orbeon.oxf.xforms.XFormsControls >getCurrentNodeset XFormsControls.java 547 !!! > >Eric > >> Ryan >> >> Ryan Puddephatt >> Software Engineer >> >> >> Teleflex Group - IT UK >> 1 Michaelson Square >> Livingston >> West Lothian >> Scotland >> EH54 7DP >> >> e> [hidden email] >> t> +44(0)1506 407 110 >> f> +44(0)1506 407 108 >> w> www.teleflex.com >> >> >> >> >> >> >> >______________________________________________________________ >> From: Eric van der Vlist [mailto:[hidden email]] >> Sent: 09 November 2006 21:32 >> To: [hidden email] >> Subject: Re: [ops-users] Support of xforms:output/@model >> >> >> >> And if I replace xforms:output/@href xforms:output/@value: >> >> <?xml version="1.0"?> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:xforms="http://www.w3.org/2002/xforms" >> xmlns:i="http://ns/xmlfr.org/example"> >> <head> >> <title>Using a different model in xforms:output</title> >> >> <xforms:model id="default"> >> <xforms:instance> >> <i:instance> >> <i:title>Title in the default instance</i:title> >> </i:instance> >> </xforms:instance> >> <xforms:submission id="mySubmit" action="" >> method="put"/> >> </xforms:model> >> >> <xforms:model id="other"> >> <i:instance> >> <i:title>Title in the other instance</i:title> >> </i:instance> >> </xforms:model> >> </head> >> >> <body> >> <p>Top level: "<xforms:output model="other" >> value="i:title"/>"</p> >> <xforms:group model="default"> >> <p>Within a group: "<xforms:output model="other" >> value="i:title"/>"</p> >> <p> >> <xforms:input ref="i:title"> >> <xforms:label> As a label: "<xforms:output >> model="other" value="i:title"/>" </xforms:label> >> </xforms:input> >> </p> >> </xforms:group> >> </body> >> </html> >> >> I get: >> >> Top level: " Title in the default instance" >> >> Within a group: " Title in the default instance" >> >> As a label: " " >> >> !!! >> >> Eric >> >> Le jeudi 09 novembre 2006 à 22:26 +0100, Eric van der Vlist a >> écrit : >> > Hi, >> > >> > xforms:output/@model doesn't seem to behave like I would >> > have expected :) !!! >> > >> > The following form: >> > >> > <?xml version="1.0"?> >> > <html xmlns="http://www.w3.org/1999/xhtml" >> > xmlns:xforms="http://www.w3.org/2002/xforms" >> > xmlns:i="http://ns/xmlfr.org/example"> >> > <head> >> > <title>Using a different model in xforms:output</title> >> > >> > <xforms:model id="default"> >> > <xforms:instance> >> > <i:instance> >> > <i:title>Title in the default instance</i:title> >> > </i:instance> >> > </xforms:instance> >> > <xforms:submission id="mySubmit" action="" >> > method="put"/> >> > </xforms:model> >> > >> > <xforms:model id="other"> >> > <i:instance> >> > <i:title>Title in the other instance</i:title> >> > </i:instance> >> > </xforms:model> >> > </head> >> > >> > <body> >> > <p>Top level: "<xforms:output model="other" >> > href="i:title"/>"</p> >> > <xforms:group model="default"> >> > <p>Within a group: "<xforms:output model="other" >> > href="i:title"/>"</p> >> > <p> >> > <xforms:input ref="i:title"> >> > <xforms:label> As a label: "<xforms:output >> > model="other" href="i:title"/>" </xforms:label> >> > </xforms:input> >> > </p> >> > </xforms:group> >> > </body> >> > </html> >> > >> > Gives: >> > >> > +++++++++++++++++++++++++++++++++++++++++++++++++ >> > >> > Top level: " " >> > >> > Within a group: " " >> > >> > As a label: " Title in the default instance" >> > >> > +++++++++++++++++++++++++++++++++++++++++++++++++ >> > >> > Am I missing something? >> > >> > Thanks, >> > >> > Eric >> > -- >> > GPG-PGP: 2A528005 >> > If you have a XML document, you have its schema. >> > >http://examplotron.org >> > >--------------------------------------------------------------- >--------- >> > Eric van der Vlist http://xmlfr.org > http://dyomedea.com >> > (ISO) RELAX NG ISBN:0-596-00421-4 >http://oreilly.com/catalog/relax >> > (W3C) XML Schema ISBN:0-596-00252-1 >http://oreilly.com/catalog/xmlschema >> > >--------------------------------------------------------------- >--------- >> -- >> GPG-PGP: 2A528005 >> Curious about Relax NG? Read my book online. >> >http://books.xmlschemata.org/relaxng/ >> >--------------------------------------------------------------- >--------- >> Eric van der Vlist http://xmlfr.org >http://dyomedea.com >> (ISO) RELAX NG ISBN:0-596-00421-4 >http://oreilly.com/catalog/relax >> (W3C) XML Schema ISBN:0-596-00252-1 >http://oreilly.com/catalog/xmlschema >> >> >---------------------------------------------------------------------- >> -- pièce jointe document plein texte (message-footer.txt) >> -- >> 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 >-- >GPG-PGP: 2A528005 >Le premier annuaire des apiculteurs 100% XML! > >http://apiculteurs.info/ >--------------------------------------------------------------- >--------- >Eric van der Vlist http://xmlfr.org >http://dyomedea.com >(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax >(W3C) XML Schema ISBN:0-596-00252-1 >http://oreilly.com/catalog/xmlschema >--------------------------------------------------------------- >--------- > -- 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 Erik Bruchez
Hi Erik,
Le vendredi 10 novembre 2006 à 11:28 +0100, Erik Bruchez a écrit : > Eric, > > Good catch, that wasn't handled correctly. It's fixed now in CVS. Great! I am testing through the XForms sandbox on Orbeon's site. When will you upgrade it to the latest CVS? > Note that you have a bug in your "other" model: you forgot > xforms:instance there. Did I? Shame on me! Eric -- GPG-PGP: 2A528005 Generated by Signify v1.14. For this and more, visit http://www.debian.org/ ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema ------------------------------------------------------------------------ -- 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 signature.asc (196 bytes) Download Attachment |
Administrator
|
Eric van der Vlist wrote:
> Hi Erik, > > Le vendredi 10 novembre 2006 à 11:28 +0100, Erik Bruchez a écrit : >> Eric, >> >> Good catch, that wasn't handled correctly. It's fixed now in CVS. > > Great! > > I am testing through the XForms sandbox on Orbeon's site. When will you > upgrade it to the latest CVS? not in the next few days. >> Note that you have a bug in your "other" model: you forgot >> xforms:instance there. > > Did I? Shame on me! ;-) -Erik -- Orbeon Forms - XForms Everywhere 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 |
Administrator
|
In reply to this post by Eric van der Vlist
On 11/10/06, Eric van der Vlist <[hidden email]> wrote:
> I am testing through the XForms sandbox on Orbeon's site. When will you > upgrade it to the latest CVS? Eric, You might already know all of this, but note that when something in checked into CVS, a build is kicked off shortly afterwards, and then pushed to ObjectWeb. With recent versions of Orbeon Forms, upgrading your code to a new build just consists in replacing the jar files in your WEB-INF/lib by those from the "nightly build" war file. And some people like create a small script that does this for them :). Alex -- 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 |
Free forum by Nabble | Edit this page |