attach a client side xhr form submit listener

2010-09-20 Thread Paul Stanton
I have a script which I would like executed whenever a form is submitted. the form is submitted via an XHR request, ie it has a zone attribute. the form is also within a zone which gets updated from time to time meaning it's dom id is changed by tapestry. has anyone overcome these issues?

Re: My mails are rejected

2010-09-20 Thread Ulrich Stärk
Try to explicitly send as plain-text. Could be that your mail client sends as HTML in response to existing threads. Uli On 18.09.2010 16:47, Igor Drobiazko wrote: Hm, this one was not rejected. I cannot reply to mails in the other thread. On Sat, Sep 18, 2010 at 4:45 PM, Igor

Re: T5.1: componentSource with an activation context

2010-09-20 Thread Jack Nuzbit
Thanks Thiago, that's just what I was looking for. I'm curious about what you're trying to accomplish here. :) I'm essentially trying to build a managed flow of pages. I have some core workflow functionality but it varies across different apps and would like to centralise the configuration in a

RE: [T5.2] JavaScript combination

2010-09-20 Thread Blower, Andy
-Original Message- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: 17 September 2010 22:31 To: Tapestry users Subject: Re: [T5.2] JavaScript combination On Fri, Sep 17, 2010 at 9:20 AM, Blower, Andy andy.blo...@proquest.co.uk wrote: A few questions: Is there any

Re: attach a client side xhr form submit listener

2010-09-20 Thread LLTYK
You can listen for the FORM_PREPARE_FOR_SUBMIT_EVENT or FORM_PROCESS_SUBMIT_EVENT in prototype, for before the zone gets updated. Or if you use a mixin on the form (or any component in the zone) the mixin initialization gets run on zone update with the new id. -- View this message in context:

Re: Radio button and submit

2010-09-20 Thread LLTYK
There's something missing here. How are you submitting the form? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Radio-button-and-submit-tp5547402p5549978.html Sent from the Tapestry Users mailing list archive at Nabble.com.

Re: Is there any way to render the get method of form?

2010-09-20 Thread Kristian Marinkovic
hi lutz, the use of the 'post' method for the form is hardcoded. the easiest way to change this is to have some client-side script that rewrites the method attribute to 'get'. an alternative you could have a heartbeat that rewrites the generated HTML server-side (take a look at the Label

RE: [T5.2] JavaScript combination

2010-09-20 Thread Blower, Andy
I've created my first stack, and I'm slightly puzzled about the value of this - or maybe I've simply done something wrong. The stack mechanism doesn't seem to be removing duplicate javascript references as I was expecting it to do. Tapestry JS has always worked on a component requesting the JS

How to import an externally hosted javscript library?

2010-09-20 Thread Michael Taylor
Greetings Tapestry Users, I’m wondering what is the best way for a component class to import an externally hosted javscript library? I know that if I want to import a JS file from within my own project I can use the org.apache.tapestry5.annotations.Import annotation, and tapestry will make sure

Re: How to import an externally hosted javscript library?

2010-09-20 Thread Michael Taylor
Thank you! I think that's exactly what I was looking for. Mike T On Mon, Sep 20, 2010 at 1:39 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 20 Sep 2010 14:16:13 -0300, Michael Taylor miketay...@google.com wrote: Greetings Tapestry Users, Hi! I’m wondering

Worthy FAQ?: What is the best way to return a zone update and a javascript as response to an XHR request

2010-09-20 Thread Markus Joschko
I have a dialog on a page which has some eventlinks that are triggering serverside actions via ajax requests. When some conditions are met, the server will decide to close the dialog and update a zone in the page. That requires to send the javascript close command and a zone update to the browser

Re: Worthy FAQ?: What is the best way to return a zone update and a javascript as response to an XHR request

2010-09-20 Thread Anna Vo
Markus- You can inject ComponentResources, pass the zoneId and eventlink to your javascript method with a JSONObject in your javascript initializer call , and then call the tapestry zone update via client side javascript. Example Java Code: @Inject private ComponentResources resources;

Note on debugging T5.2 apps

2010-09-20 Thread Peter Niederwieser
Just wanted to say that I've found debugging T5.2 apps very difficult because: - fields in page classes are null due to the new approach to page sharing - line numbers in page classes are off (may or may not be related to the fact that our pages are written in Groovy) How about enabling page

T5 component in page could not refresh when page refresh!

2010-09-20 Thread Fanzhen
Have a layout component which used by pages , and in layout component there are some data operation related to finding and showing some data from database. the problem is that , when some operation was done in my page (actually ,updating data in database),data in page refreshed, but data in

Re: T5 component in page could not refresh when page refresh!

2010-09-20 Thread Thiago H. de Paula Figueiredo
On Mon, 20 Sep 2010 23:23:21 -0300, Fanzhen fanzhen.m...@hotmail.com wrote: Have a layout component which used by pages , and in layout component there are some data operation related to finding and showing some data from database. the problem is that , when some operation was done in my

Re: T5 component in page could not refresh when page refresh!

2010-09-20 Thread Josh Canfield
How are you getting the data the data in your layout? Can you provide some code as an example? -- Josh On Sep 20, 2010, at 7:23 PM, Fanzhen fanzhen.m...@hotmail.com wrote: Have a layout component which used by pages , and in layout component there are some data operation related to

Re: T5 component in page could not refresh when page refresh!

2010-09-20 Thread Fanzhen
just as what you do in your page , 1, inject tapestry or spring service which will be used pull data from your database or something else; 2, define @property or getXXX() method which will be displayed in your component tml . 3, and at last just use what you have defined in your component .

Re: T5 component in page could not refresh when page refresh!

2010-09-20 Thread Fanzhen
hey, friend, I want to know how to get a not cached version of my page On 2010-9-21 10:45, Thiago H. de Paula Figueiredo wrote: On Mon, 20 Sep 2010 23:23:21 -0300, Fanzhen fanzhen.m...@hotmail.com wrote: Have a layout component which used by pages , and in layout component there are some

Re: T5 component in page could not refresh when page refresh!

2010-09-20 Thread Josh Canfield
when some operation was done in my page (actually ,updating data in database),data in page refreshed, but data in layout component don't refresh. If you are getting old data in the layout but new data in the page then there is something holding on to the data in the layout. Are you updating