Hi,
I'm currently building an upload widget with the following:
<xforms:upload ref=""instance('dublincore')/nesc:file"">
<xforms:label class="fixed-width">File</xforms:label>
<xforms:filename ref="@name"/>
<xforms:mediatype ref="@mediatype"/>
<xxforms:size ref="@size"/>
<xforms:setvalue ev:event="xforms-select" ref="instance('triggers')/nesc:file">on</xforms:setvalue>
<xforms:setvalue ev:event="xforms-deselect" ref="instance('triggers')/nesc:file">off</xforms:setvalue>
</xforms:upload>
Using the 'select/deselect' events I'm able to show/hide another widget enabling users to grant use licences.
Everything works fine apart from one issue: I would like to have the 'clear' function to be available immediately after a file has been selected, as shown below (Fig. 1):
Fig.1
But the above scenario only happens when I type something in the URL input which is implemented with "incremental="true" with a "xforms-value-changed" submission (to automatically retrieve the URL mimetype for the format option).
What I currently have, after a file selection, is shown in the following (Fig. 2):
Fig.2
This scenario doesn't offer a 'clear' function upfront to users after a file selection (they only choose another file). The 'clear' function only appears after users do something else in the form with 'incremental=true" characteristic. Not very intuitive.
Anyone has a workaround for this or can offer a good advice? This seems to relate to 'rebuild'. May be I could do something with the xforms-select event to cause the upload widget to change?
Regards,
Boon
-----
Boon Low
Web and System Developer,
UK National e-Science Centre
http://www.flickr.com/photos/ipohkia/The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
--
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
OW2 mailing lists service home page:
http://www.ow2.org/wws