Re: [Xsltforms-support] use of xforms-ready event with validation
Brought to you by:
alain-couthures
|
From: COUTHURES A. <ala...@ag...> - 2009-10-22 07:16:32
|
Hello Steve,
I can reproduce this incorrect behaviour. As a workaround, I suggest you
to add a dispatch: <xf:dispatch name="xforms-revalidate" target="mymodel"/>.
Thanks!
-Alain
> Hello,
>
> I am using the xforms-ready event to set values, e.g.
> </xf:model>
> ....
> <xf:instance id="inst_device_manufacturer"
> src="../../deegree-wfs/services?service=WFS&typename=aatams:device_manufacturer"/>
> ....
> <xf:action ev:event="xforms-ready">
> <xf:setvalue
> ref="instance('inst_subfeatures')//device_manufacturer_id"
>
> value="instance('inst_device_manufacturer')//aatams:device_manufacturer[1]/@gml:id"/>
> </xf:action>
> </xf:model>
>
> There is a select1 control bound to
> "instance('inst_subfeatures')//device_manufacturer_id", I would like
> this to appear validated after doing the xf:setvalue above.
>
> If I interact with the form the revalidate event is triggered and all my
> bound select1 controls, preset as above to the first item in their
> itemset, get validated. I'd like them to appear validated immediately
> after xforms-ready but this might not be possible?
>
> Thanks
>
>
|