Adding the model worked.
http://www.wicket-library.com/wicket-examples/upload/single
This link is the one that had the problem, when you try to upload a file it
gives a page that says "internal error".
Jeremy Thomerson-5 wrote:
>
> Yes - it works well. You didn't provide the error, so of course that
> means
> that we can't help you debug it. Even short of that, I'd suspect that if
> you are running a recent (RC1 / RC2) release of Wicket 1.4, that you need
> to
> pass your FileUploadField a model when you instantiate it.
>
> FileUploadField fuf = new FileUploadField("file", new Model());
>
> this used to work without the model, but it doesn't now. Please provide
> more information if this doesn't fix it.
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
> On Thu, Feb 19, 2009 at 2:20 PM, walnutmon
> <[email protected]>wrote:
>
>>
>> I'm not sure exactly where this belongs, but I need to upload a file,
>> after
>> checking the example I noticed that it throws an internal error whenever
>> I
>> try to use it... That's not the behavior I hope to emulate...
>>
>> Does anyone have an easy way to get a file upload through wicket?
>>
>> Thanks!
>> Justin
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Uploading-A-File-tp22108849p22108849.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/Uploading-A-File-tp22108849p22161089.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]