I put a bind onto a <xforms:load> action and received a "Missing
'resource' or 'ref' attribute on xforms:load element." exception. It seems OPS doesn't yet support specifying a bind instead of a ref on a the load action. Adding support for this is a pretty small change in XFormsActionInterpreter: final String ref = actionElement.attributeValue("ref"); > final String bind = actionElement.attributeValue("bind"); ... > if ((ref != null || bind != null) && resource != null) { // "If both are present, the action has no effect." // NOP > } else if (ref != null || bind != null) { ... Adrian -- 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
|
Adrian,
You are right. This does not work. I created a bug: http://forge.objectweb.org/tracker/index.php?func=detail&aid=305157&group_id=168&atid=350207 Alex On 5/3/06, Adrian Baker <[hidden email]> wrote: > I put a bind onto a <xforms:load> action and received a "Missing > 'resource' or 'ref' attribute on xforms:load element." exception. > > It seems OPS doesn't yet support specifying a bind instead of a ref on a > the load action. > > Adding support for this is a pretty small change in XFormsActionInterpreter: > > final String ref = actionElement.attributeValue("ref"); > > final String bind = actionElement.attributeValue("bind"); > > ... > > > if ((ref != null || bind != null) && resource != null) { > // "If both are present, the action has no effect." > // NOP > > } else if (ref != null || bind != null) { > ... > > Adrian > > > > > -- > 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 |
Just realised this is still outstanding - the fix is literally 2
seconds...
Alessandro Vernet wrote: Adrian, -- 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
|
You are faster than I am ;-)
I have committed a fix. Let us know if this works for you. -Erik Adrian Baker wrote: > Just realised this is still outstanding - the fix is literally 2 seconds... > > Alessandro Vernet wrote: >> Adrian, >> >> You are right. This does not work. I created a bug: >> >> http://forge.objectweb.org/tracker/index.php?func=detail&aid=305157&group_id=168&atid=350207 >> >> >> Alex >> >> On 5/3/06, Adrian Baker <[hidden email]> wrote: >>> I put a bind onto a <xforms:load> action and received a "Missing >>> 'resource' or 'ref' attribute on xforms:load element." exception. >>> >>> It seems OPS doesn't yet support specifying a bind instead of a ref on a >>> the load action. >>> >>> Adding support for this is a pretty small change in >>> XFormsActionInterpreter: >>> >>> final String ref = actionElement.attributeValue("ref"); >>> > final String bind = actionElement.attributeValue("bind"); >>> >>> ... >>> >>> > if ((ref != null || bind != null) && resource != null) { >>> // "If both are present, the action has no effect." >>> // NOP >>> > } else if (ref != null || bind != null) { >>> ... >>> >>> Adrian >>> >>> >>> >>> >>> -- >>> 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 >> > > > ------------------------------------------------------------------------ > > > -- > 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 - 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 |
Free forum by Nabble | Edit this page |