Binding and itemset problems

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

Binding and itemset problems

mjgraham
Hi,

Enclosed is a small XForm that is not working under OPS 3.0 Final:
specifically binding of type xs:date is not working and the itemset on
the select1 does not show any of the choices defined in the instance. I
have tried this with the XForms Sandbox on the OPS site as well and it
gives the same behaviour as my local OPS.

I am using Tomcat 5.5.12, Java 1.5.0_04 and Firefox 1.5.

    Cheers,

    Matthew


--
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

test-resource.xhtml (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Binding and itemset problems

Erik Bruchez
Administrator
Matthew,

As per the XForms 1.0 spec, the instance() function returns the root
element of the selected instance. This means that you must write:

<xforms:bind nodeset="instance('instance')/@created" type="xs:date"/>
<xforms:bind nodeset="instance('instance')/@updated" type="xs:date"/>

and:

<xforms:itemset nodeset="instance('status')/type">

respectively. With these changes, your examples shows date pickers and
the items are populated.

-Erik

Matthew Graham wrote:

> Hi,
>
> Enclosed is a small XForm that is not working under OPS 3.0 Final:
> specifically binding of type xs:date is not working and the itemset on
> the select1 does not show any of the choices defined in the instance. I
> have tried this with the XForms Sandbox on the OPS site as well and it
> gives the same behaviour as my local OPS.
>
> I am using Tomcat 5.5.12, Java 1.5.0_04 and Firefox 1.5.
>
>    Cheers,
>
>    Matthew



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Binding and itemset problems

mjgraham
Hi Erik,

Yes, I remember this now - thanks.

    Cheers,

    Matthew


Erik Bruchez wrote:

> Matthew,
>
> As per the XForms 1.0 spec, the instance() function returns the root
> element of the selected instance. This means that you must write:
>
> <xforms:bind nodeset="instance('instance')/@created" type="xs:date"/>
> <xforms:bind nodeset="instance('instance')/@updated" type="xs:date"/>
>
> and:
>
> <xforms:itemset nodeset="instance('status')/type">
>
> respectively. With these changes, your examples shows date pickers and
> the items are populated.
>
> -Erik
>
> Matthew Graham wrote:
>
>> Hi,
>>
>> Enclosed is a small XForm that is not working under OPS 3.0 Final:
>> specifically binding of type xs:date is not working and the itemset
>> on the select1 does not show any of the choices defined in the
>> instance. I have tried this with the XForms Sandbox on the OPS site
>> as well and it gives the same behaviour as my local OPS.
>>
>> I am using Tomcat 5.5.12, Java 1.5.0_04 and Firefox 1.5.
>>
>>    Cheers,
>>
>>    Matthew
>
>
>
>------------------------------------------------------------------------
>
>
>--
>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