cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Velychko <v_pe...@ukr.net>
Subject Re: fd:upload unexpected behaviour
Date Fri, 02 Jul 2004 07:58:43 GMT
Hello Joerg,

Friday, July 2, 2004, 2:44:09 AM, you wrote:

> On 01.07.2004 20:55, Peter Velychko wrote:

>> But try the sample with two upload widgets that are not required (see
>> example below).
>> 
>> <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>

> Confirmed. The reason: the click on the button releases the uploaded 
> file and sets the field part of the upload widget to null. On validating 
> this it does not cause an error of course (while it caused one and 
> worked like expected when having required="true"). The important 
> difference is now that the button "..." you click on is not different to 
> the normal submit widget, the form does not know that this submit was 
> indeed only an action. For fixing it the request parameter 
> 'forms_submit_id' must be set to the upload widget's id.
Yes, it is so. (I spent my evening time on investigating the issue)

> Fixed it in CVS.
Thank you very much. I'll upgrade cocoon to current CVS.

> Joerg

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

-- 
Best regards,
Peter Velychko                            
v_peter@ukr.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message