common file upload in a t5 page

2011-11-25 Thread angelochen
Hi, following is part of code used in a T5 page, I use it to accept a file upload from a regular html form, but after submit, the items parse from serverRequest is always zero, any idea? thanks. html: form action=http://localhost:8080/reg_upload; method=post enctype=multipart/form-data

Re: common file upload in a t5 page

2011-11-25 Thread Thiago H. de Paula Figueiredo
On Fri, 25 Nov 2011 06:48:16 -0200, angelochen angelochen...@yahoo.com.hk wrote: Hi, Hi! following is part of code used in a T5 page, I use it to accept a file upload from a regular html form, but after submit, the items parse from serverRequest is always zero, any idea? thanks. Can't

Re: common file upload in a t5 page

2011-11-25 Thread angelochen
that form is dynamically generated, so it can not be bound to a Tapestry form. -- View this message in context: http://tapestry.1045711.n5.nabble.com/common-file-upload-in-a-t5-page-tp5022246p5022498.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: [T5.3] Volatile grid inside form

2011-11-25 Thread Thiago H. de Paula Figueiredo
On Wed, 23 Nov 2011 18:38:46 -0200, Ville ville.virta...@cerion.fi wrote: Hi, Hi! I added https://issues.apache.org/jira/browse/TAP5-1757, but with tests I need help, as I dont know how I should write them. Any pointers? Take a look at the test sources in tapestry-core. Basically, they

Re: common file upload in a t5 page

2011-11-25 Thread Thiago H. de Paula Figueiredo
On Fri, 25 Nov 2011 08:47:46 -0200, angelochen angelochen...@yahoo.com.hk wrote: that form is dynamically generated, so it can not be bound to a Tapestry form. Ok! Instead of trying to implement it as a page, which seems to be not working, have you tried writing it as a dispatcher or a

Re: common file upload in a t5 page

2011-11-25 Thread Taha Hafeez Siddiqi
Hi Angelo It may be because of tapestry-upload jar being in the classpath. I think you can still use tapestry support by injecting MultipartRequestDecoder in your page ( see Upload component for usage) Sent from my iPhone On Nov 25, 2011, at 4:17 PM, angelochen angelochen...@yahoo.com.hk

Re: common file upload in a t5 page

2011-11-25 Thread angelochen
Thanks, this really works! @Inject private MultipartDecoder decoder; UploadedFile uf = decoder.getFileUpload(filename); Taha Hafeez wrote Hi Angelo It may be because of tapestry-upload jar being in the classpath. I think you can still use tapestry support by injecting

Re: PageTester with an application that uses tynamo

2011-11-25 Thread donarus
hi... Did you found any simple solution on this? I am totaly confused and after 12 hours of searching a solution I'm not able to test any page where user should be logged in. The problem is, i think in TestableRequest/TestableResponse implementation. It should be possible to change TR/TR to

Re: PageTester with an application that uses tynamo

2011-11-25 Thread parranz
Hi, sorry, I didn't. Eventually I gave up trying :(. If you do, don't forget to write it! El 25/11/2011 15:05, donarus [via Tapestry] escribió: hi... Did you found any simple solution on this? I am totaly confused and after 12 hours of searching a solution I'm not able to test any page

Re: tld tapestry 5.3

2011-11-25 Thread Pablo Borges
Christian, tld version of which is available for download is out of date 2011/11/23 Christian Riedel cr.ml...@googlemail.com Look, someone generated one for 5.3 already: http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse Am 23.11.2011 um 18:03 schrieb Pablo Borges: how to

Dynamic Disabled fields with binding

2011-11-25 Thread George Christman
Hi all, I'm very new to binding and I found an article on the mailing list that seemed pretty close what I needed in regards to dynamic disabling. I'm trying to dynamically disable particular fields within my form at different states. These fields will come from the db and selected within my for

Re: T5: dynamically set disabled attribute

2011-11-25 Thread George Christman
Eric, were you able to ever get this to work? I'm attempting to accomplish the same thing. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-dynamically-set-disabled-attribute-tp2414476p5023268.html Sent from the Tapestry - User mailing list archive at Nabble.com.

where to save image

2011-11-25 Thread csckid
User of web application needs to save customer images. Where do I place them? -- View this message in context: http://tapestry.1045711.n5.nabble.com/where-to-save-image-tp502p502.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: T5: dynamically set disabled attribute

2011-11-25 Thread Thiago H. de Paula Figueiredo
On Fri, 25 Nov 2011 15:21:32 -0200, George Christman gchrist...@cardaddy.com wrote: Eric, were you able to ever get this to work? I'm attempting to accomplish the same thing. Have you tried: t:textfield ... t:disabled=disabled/ public isDisabled() { return ...; } -- View this

Re: where to save image

2011-11-25 Thread Thiago H. de Paula Figueiredo
On Fri, 25 Nov 2011 15:45:45 -0200, csckid testnowsh...@gmail.com wrote: User of web application needs to save customer images. Where do I place them? I'd put them in a database. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and

Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).

2011-11-25 Thread Shing Hing Man
When using the component richtexteditor in   tapx-yui-1.2-SNAPSHOT.jar from http://howardlewisship.com/snapshot-repository., I get the following error. Unable to locate asset 'classpath:com/howardlewisship/tapx/yui_2_8_0r4/build/yahoo-dom-event/yahoo-dom-event-min.js' (the file does not

Re: PageTester with an application that uses tynamo

2011-11-25 Thread Robert Zeigler
1) Create your page tester instance: PageTester tester = new PageTester(packagename,Appname,contextpath); 2) get the registry from the page tester : tester.getRegistry(); 3) Get the RequestGlobals service from the registry: RequestGlobals globals = registry.getService(RequestGlobals.class); 4)

Form that replaces itself with another via Ajax

2011-11-25 Thread Greg Pagendam-Turner
Hi, How do I write code for a page that contains a form which replaces itself via Ajax once a certain event has occurred? Regards, Greg - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional

Re: Tapx -yui richtexteditor : yahoo-dom-event-min.js (the file does not exist).

2011-11-25 Thread Taha Hafeez Siddiqi
Hi Is the jar in your classpath ? If you running it within eclipse you can check it in 'BUILD PATH'. Did you try gradle jettyRun ? ( in case of Gradle) or mvn jetty:run (in case of maven) regards Taha On Nov 26, 2011, at 5:05 AM, Shing Hing Man wrote: When using the component

Re: Form that replaces itself with another via Ajax

2011-11-25 Thread Lenny Primak
Easy. Put it inside a zone. On Nov 25, 2011, at 8:10 PM, Greg Pagendam-Turner g...@liftyourgame.com wrote: Hi, How do I write code for a page that contains a form which replaces itself via Ajax once a certain event has occurred? Regards, Greg

Re: Form that replaces itself with another via Ajax

2011-11-25 Thread Greg Pagendam-Turner
On 26/11/2011 12:21 PM, Thiago H. de Paula Figueiredo wrote: On Sat, 26 Nov 2011 00:10:20 -0200, Greg Pagendam-Turner g...@liftyourgame.com wrote: Hi, Hi! How do I write code for a page that contains a form which replaces itself via Ajax once a certain event has occurred? The simplest

Re: Form that replaces itself with another via Ajax

2011-11-25 Thread Taha Hafeez Siddiqi
Hi Putting Thiago's answer into code div t:type='zone' t:id='myFormZone' form t:type='Form' t:zone='myFormZone' /form /div @InjectComponent private Zone myFormZone; @OnEvent(EventConstants.SUBMIT) Object submit(){ return myFormZone.getBody(); } Not sure why you are using a block.

Re: Form that replaces itself with another via Ajax

2011-11-25 Thread Greg Pagendam-Turner
Thanks Taha, My code allows an ajax upload of an image via jQuery and then allows the user to crop the image. I have: t:layout xmlns:t=http://tapestry.apache.org/schema/tapestry_5_3.xsd; xmlns:p=tapestry:parameter xmlns:j=tapestry-library:jquery h2Upload Image/h2 br / !--input

Re: Form that replaces itself with another via Ajax

2011-11-25 Thread Taha Hafeez Siddiqi
Use if else in the zone to choose between Ajax upload and form and always return the zone Sent from my iPhone On Nov 26, 2011, at 9:08 AM, Greg Pagendam-Turner g...@liftyourgame.com wrote: Thanks Taha, My code allows an ajax upload of an image via jQuery and then allows the user to crop