Re: T3: Upload

2007-10-02 Thread Nazmul Bhuiyan
The example code working now after removing the following line of code: public static final Format SIZE_FORMAT = NumberFormat.getNumberInstance(); I'm not exactly sure what's wrong with this line of code. Thanks a lot. Naz Nazmul Bhuiyan wrote: > > I've removed that deprecated method from my

Re: T3: Upload

2007-10-01 Thread Nazmul Bhuiyan
I've removed that deprecated method from my page. I'm running this example page as part of my original project. And running from inside Eclipse. All other pages working ok. That's how I normally test any example before using into my real page. In the example code there is no .page file. Is my .p

Re: T3: Upload

2007-10-01 Thread Nick Westgate
I've tested the example code on the page. It works with the exception of file.isTruncated(), which has been deprecated, I presume. So the rest of the code, ie the code you post below, does work. It must be a configuration issue. Are you running this example page in isolation, or is it part of a

Re: T3: Upload

2007-09-30 Thread Nazmul Bhuiyan
.page: The .page file was missed spelled but after correcting the file name I'm getting the following error: Could not load class UploadPage from WebappClassLoader delegate: false repositories: /WEB-INF/classes/ --> Parent Classloader: [EMAIL PROTECTED] : UploadPage But com.fujitsu.e

Re: T3: Upload

2007-09-27 Thread Nick Westgate
What about your .page file? Cheers, Nick. Nazmul Bhuiyan wrote: If you click on the link I've provided you will see the code. I've copied the code from there. This is from my Upload.html and formSubmit is as below: private IUploadFile file; private File serverFile; public IUpload

Re: T3: Upload

2007-09-27 Thread andyhot
Perhaps you've misplaced the .java and the .html files and they can't find each other ? Are you sure your .java is really used? Nazmul Bhuiyan wrote: If you click on the link I've provided you will see the code. I've copied the code from there. This is from my Upload.html and formSubmit is as be

Re: T3: Upload

2007-09-27 Thread Nazmul Bhuiyan
If you click on the link I've provided you will see the code. I've copied the code from there. This is from my Upload.html and formSubmit is as below: private IUploadFile file; private File serverFile; public IUploadFile getFile() { return file; } public void setFile(IUploadFile

Re: T3: Upload

2007-09-27 Thread Nick Westgate
Ok. Is this in a page or a component? And your Java code? Do you have a formSubmit listener? Cheers, Nick. Nazmul Bhuiyan wrote: I've copied the code from http://tapestry.apache.org/tapestry3/doc/ComponentReference/Upload.html File: 

Re: T3: Upload

2007-09-27 Thread Nazmul Bhuiyan
I've copied the code from http://tapestry.apache.org/tapestry3/doc/ComponentReference/Upload.html File:  Thanks Naz Nick Westgate wrote: > > Please post the (relevant parts of) the code. > > Cheers, > Nick. > > > Nazm

Re: T3: Upload

2007-09-27 Thread Nick Westgate
Please post the (relevant parts of) the code. Cheers, Nick. Nazmul Bhuiyan wrote: I'm getting an error when trying the Upload component example in http://tapestry.apache.org/tapestry3/doc/ComponentReference/Upload.html. Unable to resolve expression 'listeners.formSubmit' for [EMAIL PROTECTED]

T3: Upload

2007-09-27 Thread Nazmul Bhuiyan
I'm getting an error when trying the Upload component example in http://tapestry.apache.org/tapestry3/doc/ComponentReference/Upload.html. Unable to resolve expression 'listeners.formSubmit' for [EMAIL PROTECTED] binding: ExpressionBinding[UploadPage listeners.formSubmit cachedValue=null] I've