Thank you,

do you have exemple for manipuling this?

Because I have a panel with a form, and I want to display a image when the
file is changed in the FileUploadFiled....

Thank you in advance


Cristi Manole wrote:
> 
> The FileUploadField doesn't work with Ajax like that.
> 
> You have to add an iframe and post to that.
> 
> At least, I haven't managed to get it working with Ajax...
> 
> 
> Cristi Manole
> 
> On Tue, Apr 22, 2008 at 3:04 PM, Fabien D. <[EMAIL PROTECTED]>
> wrote:
> 
>>
>> Hi, I would like to add a behavior on my FileUploadField
>>
>> But I can't get back the path of the file, or the file
>>
>> this.logo = new FileUploadField("inputLogo");
>>        logo.setRequired(false);
>>        logo.add(new AjaxFormComponentUpdatingBehavior("onchange") {
>>                private static final long serialVersionUID = 1L;
>>            protected void onUpdate(AjaxRequestTarget target) {
>>           ..............................
>> }
>>
>> I have try everything :
>>
>> FileUpload up = logo.getFileUpload(); -> null
>> File file = (File)logo.getModelObject(); -> null
>> logo.getModelObjectAsString() -> null
>>
>> So how can i get the file or just the path and the name file????
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16823823.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16833288.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to