Re: Setting contenttype of T5 form

2011-04-17 Thread Fernando Benjamin
gt; > #################### THIS IS MY FORM > > > title="${message:title}" > > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; > > xmlns:p="tapestry:parameter"> > > Post a new product: > >

Re: Setting contenttype of T5 form

2011-04-16 Thread Fernando Benjamin
try.1045711.n5.nabble.com/Tapestry-FileUploader-Integration-td4268987.html > > regards > Taha > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Setting-contenttype-of-T5-form-tp4270175p4292978.html > Sent from the Tapestry - User mailing list arc

Re: Setting contenttype of T5 form

2011-04-09 Thread Taha Hafeez
If you can use an ajax file uploader then you can modify this to meet your needs http://tapestry.1045711.n5.nabble.com/Tapestry-FileUploader-Integration-td4268987.html regards Taha -- View this message in context: http://tapestry.1045711.n5.nabble.com/Setting-contenttype-of-T5-form

Re: Setting contenttype of T5 form

2011-04-08 Thread Josh Canfield
You should really take Howard's advice and look at how the upload component works. You can't just change the content type of the form because this changes how servlets behave. Try googling for "servlet multipart/form-data" and find that since the beginning of time people have been writing libraries

Re: Setting contenttype of T5 form

2011-04-08 Thread Fernando Benjamin
Hi again, I am still working on the same form! I have managed to get my javascript initialized and uploaded to the client! Everything works great until I get in the onActivate method. Then I get an exception, which I can't figure out the problem, I have also explicit changed the Form.method to Po

Re: Setting contenttype of T5 form

2011-03-30 Thread Fernando Benjamin
Haaa, I overlooked the other option, I'll try with javascript! Thank you! On 31 March 2011 00:14, Fernando Benjamin wrote: > Hi Howard, > > The Upload component requires a UploadFile as a value! > I want to use here a plain html input file and not one of tapestry > components! > If I replace >

Re: Setting contenttype of T5 form

2011-03-30 Thread Fernando Benjamin
Hi Howard, The Upload component requires a UploadFile as a value! I want to use here a plain html input file and not one of tapestry components! If I replace WITH It does change the contenttype of the form as I wanted, but this means I have to use UploadedFile, because its value is required in

Re: Setting contenttype of T5 form

2011-03-29 Thread Howard Lewis Ship
Look at the Upload component source; you'll see how it does it. On Tue, Mar 29, 2011 at 2:07 PM, Fernando Benjamin wrote: > Hi everybody, > > > I am trying to upload a file to GAE by using a tapestry form, but I can't > use tapestry 5 Upload component because it depends on a class writing to the

Setting contenttype of T5 form

2011-03-29 Thread Fernando Benjamin
Hi everybody, I am trying to upload a file to GAE by using a tapestry form, but I can't use tapestry 5 Upload component because it depends on a class writing to the filesystem! I need to set the contenttype of the form to "multipart/form-data" so I can retrieve the file on the servlet(filter). T