Re: T5: AJAX ActionLink exception if clicked as page loads

2008-11-20 Thread Geoff Callender
See https://issues.apache.org/jira/browse/TAP5-1 . Perhaps you should add your comments and maybe even re-open it? On 20/11/2008, at 7:28 PM, Inge Solvoll wrote: I ran into this problem myself. Is it possible to listen for an event that says "Tapestry javascript has finished initializing the

Re: T5: AJAX ActionLink exception if clicked as page loads

2008-11-20 Thread Inge Solvoll
I ran into this problem myself. Is it possible to listen for an event that says "Tapestry javascript has finished initializing the page"? The scenario of users clicking links before they are "decorated" with ajax javascript is very common, so there should be a built-in best-practice solution for t

Re: T5: AJAX ActionLink exception if clicked as page loads

2008-09-08 Thread luna_guo
Geoff It's ok to return a block object in a action handler method,but you can't use the type Block,it will throw exceptions.You should use Object instead. /luna -- View this message in context: http://www.nabble.com/T5%3A-AJAX-ActionLink-exception-if-clicked-as-page-loads-tp19346336p19372125.ht

Re: T5: AJAX ActionLink exception if clicked as page loads

2008-09-06 Thread Filip S. Adamsen
Hi Geoff, Tapestry doesn't hook up zones etc. until the DOM is loaded, so the link isn't an AJAX link at the time you click it. You can check Request#isXhr in your event handler to see if it's an AJAX request - if it's not you can't return a Block, so you'll have to figure out another way to

T5: AJAX ActionLink exception if clicked as page loads

2008-09-06 Thread Geoff Callender
Is this a known problem? Is there a known solution? I have a page with 2 ActionLinks - the first link updates the whole page; the second link specifies a zone. If you click on the two links in quick succession then an exception is thrown. Alternatively, just Reload the page and click on th