forms - Orbeon control details in own component -
i'm making own component, , want have oportunity set properties in form builder. in want reach effect similar autocomplete control, can set 3 properties (uri, xpath, , relative xpath). read, can using control-details markup, unfortunately not work. code (i working on davinci tutorial):
<xbl:binding element="fr|tutorial-davinci" id="fr-tutorial-davinci" xxbl:mode="lhha binding value"> <metadata xmlns="http://orbeon.org/oxf/xml/form-builder" xmlns:xf="http://www.w3.org/2002/xforms"> <display-name lang="en">davinci-modified</display-name> <templates> <instance label=""/> <view> <fr:tutorial-davinci id="" appearance="minimal" labelref="@label" xmlns="" resource="" > <xf:label ref=""/> <xf:hint ref=""/> <xf:help ref=""/> <xf:alert ref=""/> </fr:tutorial-davinci> </view> </templates> <control-details> <xf:input> <xf:label lang="en">some param</xf:label> </xf:input> </control-details> </metadata> <xbl:template> <xf:model> <xf:instance id="id1"><value/></xf:instance> </xf:model> <xf:input ref="instance('id1')" /> </xbl:template> </xbl:binding>
you must have ref
attribute on<xf:input>
points attribute or element information stored. in autocomplete.xml, there in particular the
resource` attribute, which:
Comments
Post a Comment