XForms load: unexpected behaviour

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

XForms load: unexpected behaviour

eshaleni
Hi guys,

We're having this issue with Orbeon. There's a 'load' element that does not behave as expected, when the form is deployed.
Namely, trigger in the code snippet below renders a link with # target, whereas we expect the link target to be <base-URI>/test.

According to XForms specification, the value attribute of child resource element is  'Author-optional attribute containing an XPath expression to evaluate using the in-scope evaluation context.'. So we supply an XPath expression 'FormInput1', but apparently something goes wrong.

Is this an incorrect use of 'load' or rather incorrect behaviour of Orbeon?

Code snippet:
===
<xforms:model>
   <xforms:instance id="Default">
    <form>
     <FormInput1>/test</FormInput1>
    </form>
   </xforms:instance>
   ...
</xforms:model>
...
<xforms:trigger appearance="minimal">
            <xforms:label>Test</xforms:label>
            <xforms:action ev:event="DOMActivate">
                <xforms:load show="replace">
                        <xforms:resource value="FormInput1"></xforms:resource>
                    </xforms:load>
            </xforms:action>
</xforms:trigger>
===


Your advice is very much appreciated!

Thanks,
Katya
Reply | Threaded
Open this post in threaded view
|

Re: XForms load: unexpected behaviour

Erik Bruchez
Administrator
We do not support the nested elements, so instead use an Attribute Value Template (AVT):

   <xforms:load show="replace" resource="{FormInput1}"/>

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: XForms load: unexpected behaviour

eshaleni
Hi Erik,

Thanks for your reply!

Katya