Problem with add two own controls

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with add two own controls

pumbosha
Hi

I made my own control and I added it to properties-local in this way:

<property as="xs:string"  name="oxf.fb.toolbox.group.other.uri.*.*" value="oxf:/xbl/orbeon/my-control1/my-control1.xbl" />

and it works good.

Now I've made other cotrol and I've found that I have to add that in this way:

<property as="xs:string"  name="oxf.fb.toolbox.group.other.uri.*.*">
oxf:/xbl/orbeon/my-control1/my-control1.xbl
oxf:/xbl/orbeon/my-control2/my-control2.xbl
</property>

but unfortunately it doesn't work and in addition my formBuilder after that change have only content:

<dummy xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
       xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xbl="http://www.w3.org/ns/xbl"
       xmlns:xpl="java:org.orbeon.oxf.pipeline.api.FunctionLibrary"
       xmlns:version="java:org.orbeon.oxf.common.Version"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilder"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:exf="http://www.exforms.org/exf/1-0"/>

(I don't know what is the dummy..) and in the toolbox there is only three buttons (new section, new grid, new repeater grid).

My second control is made good becauese it works when I add it only instead of add two controls.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with add two own controls

Alessandro  Vernet
Administrator
Hi Tom,

What version of Orbeon Forms are you using? I am asking as the support for putting the value inside the <property> element instead of in the "value" attribute was added in 4.6. So, if you're using 4.5 or older, you need to put a space separarate list in the value attribute, as for instance done in the 4.5 properties-form-builder.xml linked below.

https://github.com/orbeon/orbeon-forms/blob/4.5-ce/src/resources-packaged/config/properties-form-builder.xml

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Problem with add two own controls

pumbosha
My version is 4.5 and now it works. Thank You!
Reply | Threaded
Open this post in threaded view
|

Re: Problem with add two own controls

Alessandro  Vernet
Administrator
Hi Tom,

Excellent, thanks for confirming.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet