I am trying to create my own XBL component. Everything works ok if I include it using xi:include. Placing the in WEB-INF/resources/xbl/appname/componentname/componentname.xbl, as specified by the Orbeon docs, works, but only if it the component element is declared as being in the namespace http://orbeon.org/oxf/xml/form-runner. It is not resolved in any other namespace. Also, components seem to need to be in .../resources/xbl/orbeon/componentname/; in any other path but "orbeon", the component it is not found.
Is the "by design", a bug, or PEBMAC? Where is this binding/config defined? I am using dev build orbeon-2010-23-02. Many thanks in advance!!! -Gino
Gino Miceli
Forest Information Systems Specialist Food and Agriculture Organization of the United Nations FAO-Finland Cooperation Programme Sustainable Forest Management in a Changing Climate Forest Management Division, Rm. D-406 Viale delle Terme di Caracalla, s.n.c. 00153 Rome, Italy http://www.fao.org/forestry |
Administrator
|
Hi Gino,
You can (should!) use your own namespace, and don't have to (should not!) put your XBL component in resources/xbl/orbeon. I think the section "Automatic inclusion of XBL bindings" at the bottom of this page will provide an answer to your question: http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Automatic-inclusion-of-XBL-bindings Alex On Mon, Mar 22, 2010 at 1:21 AM, gino-m <[hidden email]> wrote: > > I am trying to create my own XBL component. Everything works ok if I include > it using xi:include. Placing the in > WEB-INF/resources/xbl/appname/componentname/componentname.xbl, as specified > by the Orbeon docs, works, but only if it the component element is declared > as being in the namespace http://orbeon.org/oxf/xml/form-runner. It is not > resolved in any other namespace. Also, components seem to need to be in > .../resources/xbl/orbeon/componentname/; in any other path but "orbeon", the > component it is not found. > > Is the "by design", a bug, or PEBMAC? Where is this binding/config defined? > > I am using dev build orbeon-2010-23-02. > > Many thanks in advance!!! > -Gino > -- > View this message in context: http://n4.nabble.com/Can-t-resolve-XBL-components-unless-in-fr-namespace-tp1677295p1677295.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
This post was updated on .
Thanks Alex!
This looks exactly like what I’m looking for.. Is this preferred over explicitly xi:include-ing them into your form? I can see both as having advantages.. I think using the include reduces the amount of custom configuration required (the app is more self-contained). What are your thoughts on this? Is/will there be there a way to have per-app or per-form configurations? Cheers! -Gino
Gino Miceli
Forest Information Systems Specialist Food and Agriculture Organization of the United Nations FAO-Finland Cooperation Programme Sustainable Forest Management in a Changing Climate Forest Management Division, Rm. D-406 Viale delle Terme di Caracalla, s.n.c. 00153 Rome, Italy http://www.fao.org/forestry |
Administrator
|
Gino,
Regarding importing your XBL components with xi:include vs. mapping them with oxf.xforms.xbl.mapping.orbeon, it is really up to you. If you have a couple of XBL files, it might not be a big deal to add those xi:include, but if you start having a whole library, you'll soon find it annoying to have to remember to xi:include the right files depending on what components you happen to use on that page. Alex On Tue, Mar 23, 2010 at 8:21 AM, gino-m <[hidden email]> wrote: > Thanks Alex! > > > > This looks exactly like what I’m looking for.. > > > > Is this preferred over explicitly xi:include-ing them into your form? > > > > I can see both as having advantages.. I think using the include reduces the > amount of custom configuration required (the app is more self-contained). > What are your thoughts on this? Is/will there be there a way to have > per-app or per-form configurations? > > > > Cheers! > > -Gino > > > > From: Alessandro Vernet [via Orbeon Forms (ops-users)] [mailto:[hidden > email]] > Sent: 22 March 2010 17:49 > To: Miceli, Gino (FOMR) > Subject: Re: Can't resolve XBL components unless in fr namespace > > > > Hi Gino, > > You can (should!) use your own namespace, and don't have to (should > not!) put your XBL component in resources/xbl/orbeon. I think the > section "Automatic inclusion of XBL bindings" at the bottom of this > page will provide an answer to your question: > > http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Automatic-inclusion-of-XBL-bindings > > Alex > > On Mon, Mar 22, 2010 at 1:21 AM, gino-m <[hidden email]> wrote: > >> >> I am trying to create my own XBL component. Everything works ok if I >> include >> it using xi:include. Placing the in >> WEB-INF/resources/xbl/appname/componentname/componentname.xbl, as >> specified >> by the Orbeon docs, works, but only if it the component element is >> declared >> as being in the namespace http://orbeon.org/oxf/xml/form-runner. It is >> not >> resolved in any other namespace. Also, components seem to need to be in >> .../resources/xbl/orbeon/componentname/; in any other path but "orbeon", >> the >> component it is not found. >> >> Is the "by design", a bug, or PEBMAC? Where is this binding/config >> defined? >> >> I am using dev build orbeon-2010-23-02. >> >> Many thanks in advance!!! >> -Gino >> -- >> View this message in context: >> http://n4.nabble.com/Can-t-resolve-XBL-components-unless-in-fr-namespace-tp1677295p1677295.html >> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 >> >> > > -- > Orbeon Forms - Web forms, open-source, for the Enterprise - > http://www.orbeon.com/ > My Twitter: http://twitter.com/avernet > > > -- > 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 > > ________________________________ > > View message @ > http://n4.nabble.com/Can-t-resolve-XBL-components-unless-in-fr-namespace-tp1677295p1677910.html > To unsubscribe from Can't resolve XBL components unless in fr namespace, > click here. > > > > ________________________________ > View this message in context: RE: Can't resolve XBL components unless in fr > namespace > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |