Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-24 Thread Jonathan Barker
You need to make sure that the form's zone parameter is set to the id and not just the t:id of the Zone. I started generating my own xml id's from a root name and the actual database id of the object I was about to use. I can't speak to mixing in the custom javascript, except that when the Ajax

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-24 Thread SakshiAgarwal
Thanks a lot..now this works for me...I am so happy about it as I have been struggling through it since many days... my another doubt is - if i replace submit component with linksubmit; my javascript method onclick is not getting invoked... Whereas, if i use JSON or mixin my script is invoked

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-23 Thread Geoff Callender
Does this example help? http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxform On 23/06/2010, at 3:06 PM, SakshiAgarwal wrote: Hi, Thanks a lot for the reply. It works now. I have been struggling hard to make zone work with Form Submit component. I read

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-23 Thread SakshiAgarwal
Hi, I did check this example, but it helped me only to some extent. The main problem in my case is: the structure of my TML file is like this: Loop Zone Form (defined photoZOne here) Submit the main problem is: counter value for first form does not function

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-22 Thread SakshiAgarwal
Hi Did u get the solution to ur problem. I am facing the same problem component event handler method returned the value Block[Body of Photos:photozone, at context:Photos.tml, line 28]. Return type org.apache.tapestry5.internal.structure.BlockImpl can not be handled regards sakshi -- View this

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-22 Thread Thiago H. de Paula Figueiredo
On Tue, 22 Jun 2010 03:09:56 -0300, SakshiAgarwal sakshi.a...@gmail.com wrote: Hi Hi! Did u get the solution to ur problem. I am facing the same problem component event handler method returned the value Block[Body of Photos:photozone, at context:Photos.tml, line 28]. Return type

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-22 Thread SakshiAgarwal
Hi, Thanks a lot for the reply. It works now. I have been struggling hard to make zone work with Form Submit component. I read on http://www.infoq.com/articles/tapestry5-intro, how to make AJAX request. So accordingly from my attached Photos.tml file, I should make onSuccessFromDisapprovePhoto

Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-01-28 Thread Alexander Muthmann
Hi there, I'm currently writing an application, which uses Tapestry 5.1. So far, I have no problems, but now I try to add some AJAX support. I want to update a Zone on my page, if the user clicks an actionlink. For this, I use the following code: t:zone t:id=catsZone t:actionlink

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-01-28 Thread Thiago H. de Paula Figueiredo
Make sure Javascript is enabled and there are no Javascript errors in your page. By the way, when Request.isXHR() returns false, you should return null to refresh the page. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-01-28 Thread Alexander Muthmann
Wow, that was fast, thank you very much... I don't use any custom javascript and other thinks like a autocomplete work, so I don't think, it's a problem with my configuration. To return null is what I do if(request.isXHR) { return zone.getBody(); } else return null; On 28.01.2010 14:13,

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-01-28 Thread Thiago H. de Paula Figueiredo
On Thu, 28 Jan 2010 11:36:07 -0200, Alexander Muthmann amuthm...@dev-eth0.de wrote: I don't use any custom javascript and other thinks like a autocomplete work, so I don't think, it's a problem with my configuration. To return null is what I do if(request.isXHR) { return zone.getBody(); }

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-01-28 Thread Alexander Muthmann
The only error is caused by prototype: Error: throw $continue is deprecated, use return instead { message=throw $continue is deprecated, use return instead, more...} Line: 4159 File: https://localhost/assets/scriptaculous/5.1.0.5/prototype.js Nothing else On 28.01.2010 14:45, Thiago H. de