My researches show FileUploadField does not support ajax behavior....

So there is no wicket input, which permits to the user to browse his local
disk?

Thank you in advance.


Fabien D. 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-tp16823823p16824291.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