Re: T5.2.5 Error uploading file using FORM with ID will generate NPE.

2011-06-12 Thread ael
Hi Thiago, I dont know what happened but for now it is working. Just CLEAN & BUILD... Thanks :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-5-Error-uploading-file-using-FORM-with-ID-will-generate-NPE-tp4474992p4482815.html Sent from the Tapestry - User mailing l

Re: T5.2.5 Error uploading file using FORM with ID will generate NPE.

2011-06-12 Thread ael
Hi Thiago, The problem is it will not go to the onsuccess method but it will go to onfail method this is the real problem. But when i remove the id on the form the error will not occur anymore. Its kinda weird though. Any idea whats happening here? -- View this message in context: http://tap

Re: T5.2.5 Error uploading file using FORM with ID will generate NPE.

2011-06-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Jun 2011 01:22:05 -0300, ael wrote: What do you mean i should use the Upload component? Oops, my mail reader somehow hadn't shown the Upload component being used, just an empty form. :P public class UploadExample { @Property

Re: T5.2.5 Error uploading file using FORM with ID will generate NPE.

2011-06-09 Thread ael
What do you mean i should use the Upload component? I only based the code based on http://tapestry.apache.org/uploading-files.html http://tapestry.apache.org/uploading-files.html Then i modified it based on Multiple FORM design. public class UploadExam

Re: T5.2.5 Error uploading file using FORM with ID will generate NPE.

2011-06-09 Thread Thiago H. de Paula Figueiredo
On Thu, 09 Jun 2011 23:45:03 -0300, ael wrote: Error uploading file using FORM with ID. File value is null. TEMPLATE CLASS You need to use the Upload component in your template. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and

T5.2.5 Error uploading file using FORM with ID will generate NPE.

2011-06-09 Thread ael
Error uploading file using FORM with ID. File value is null. TEMPLATE CLASS PAGE CLASS @Component(id = "guestForm") private Form guestForm; @Property private UploadedFile file; public void onSuccessFromguestForm() { // Set Path String path =