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 wrote:
> Thanks Taha,
>
> My code allows an ajax upload of an image via jQuery and then allows the user
> to crop the image.
>
> I
Thanks Taha,
My code allows an ajax upload of an image via jQuery and then allows the
user to crop the image.
I have:
http://tapestry.apache.org/schema/tapestry_5_3.xsd";
xmlns:p="tapestry:parameter"
xmlns:j="tapestry-library:jquery">
Upload Image
JavaScript must be activated!
Hi
Putting Thiago's answer into code
@InjectComponent
private Zone myFormZone;
@OnEvent(EventConstants.SUBMIT)
Object submit(){
return myFormZone.getBody();
}
Not sure why you are using a block.
regards
Taha
On Nov 26, 2011, at 8:43 AM, Greg Pagendam-Turner wrote:
> On 26/11/
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
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 way is to put the form
Easy. Put it inside a zone.
On Nov 25, 2011, at 8:10 PM, Greg Pagendam-Turner 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
>
>
>
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 richtextedi
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 commands
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);
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 exis
On Fri, 25 Nov 2011 15:45:45 -0200, csckid 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 instructor
Owner, Ars
On Fri, 25 Nov 2011 15:21:32 -0200, George Christman
wrote:
Eric, were you able to ever get this to work? I'm attempting to
accomplish the same thing.
Have you tried:
public isDisabled() {
return ...;
}
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/
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.
--
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.
--
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 lo
Christian,
tld version of which is available for download is out of date
2011/11/23 Christian Riedel
> 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 generate the 5.3 tld tap
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
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 provi
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 injectin
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 wrote:
> that form is dynamic
On Fri, 25 Nov 2011 08:47:46 -0200, angelochen
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 request filter?
--
Thiago H
On Wed, 23 Nov 2011 18:38:46 -0200, Ville 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 use
Selenium-RC.
--
Thi
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.
-
On Fri, 25 Nov 2011 06:48:16 -0200, angelochen
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 you use the Upload component
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:
http://localhost:8080/reg_upload"; method="post"
enctype="multipart/form-data" >
24 matches
Mail list logo