Hello Joerg, Let me to specify conditions. The samples of both 2.1.5 and CVS work ok. But they have one upload widget with attribute 'reqired="true"'. But try the sample with two upload widgets that are not required (see example below). The behaviour described becomes apparent in that case.
<fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" xmlns:i18n="http://apache.org/cocoon/i18n/2.1"> <fd:widgets> <fd:field id="user" required="true"> <fd:datatype base="string"/> <fd:label>User name</fd:label> </fd:field> <fd:upload id="upload" mime-types="text/plain"> <fd:label>Upload a text file</fd:label> <fd:hint>You must choose a text file</fd:hint> </fd:upload> <fd:upload id="upload2" mime-types="text/plain"> <fd:label>Upload a text file</fd:label> <fd:hint>You must choose a text file</fd:hint> </fd:upload> </fd:widgets> </fd:form> Thursday, July 1, 2004, 9:06:42 PM, you wrote: > On 01.07.2004 18:00, Peter Velychko wrote: >> Hello users, >> >> I've found some unexpected behaviour for me when using <fd:upload/>. >> >> When one uploads some file with forbidden content type validation >> error arises for the widget. The result view contains error messages. >> When the form contains also other errors user can press button of >> upload wibget and upload another file. All is ok. >> But if the error from upload widget is single on the form hitting >> upload widget's button leads to simple form submit with passing to >> next form. >> So user cannot reupload file uploaded first time mistakenly. >> >> Could someone help me with this problem? > I can not confirm it, tried it with the upload sample. The widget and > its validation behave like expected. > Joerg > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Peter Velychko [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
