Return type net.sf.json.JSONObject can not be handled

2010-07-08 Thread Borut Bolčina
exception: A component event handler method returned the value {birthDay:,birthMonth:,birthYear:,gender:male,postOfficeNumberAndName:1236 Trzin}. Return type net.sf.json.JSONObject can not be handled. Configured return types are java.lang.Class, java.lang.String, org.apache.tapestry5.Link

Re: Return type net.sf.json.JSONObject can not be handled

2010-07-08 Thread Christophe Cordenier
] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: A component event handler method returned the value {birthDay:,birthMonth:,birthYear:,gender:male,postOfficeNumberAndName:1236 Trzin}. Return type net.sf.json.JSONObject can not be handled. Configured

Re: Return type net.sf.json.JSONObject can not be handled

2010-07-08 Thread Ulrich Stärk
:,birthYear:,gender:male,postOfficeNumberAndName:1236 Trzin}. Return type net.sf.json.JSONObject can not be handled. Configured return types are java.lang.Class, java.lang.String, org.apache.tapestry5.Link, org.apache.tapestry5.StreamResponse, org.apache.tapestry5.ajax.MultiZoneUpdate

Re: Return type net.sf.json.JSONObject can not be handled

2010-07-08 Thread Borut Bolčina
this error message: [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: A component event handler method returned the value {birthDay:,birthMonth:,birthYear:,gender:male,postOfficeNumberAndName:1236 Trzin}. Return type net.sf.json.JSONObject can

Re: Return type net.sf.json.JSONObject can not be handled

2010-07-08 Thread Inge Solvoll
Processing of request failed with uncaught exception: A component event handler method returned the value {birthDay:,birthMonth:,birthYear:,gender:male,postOfficeNumberAndName:1236 Trzin}. Return type net.sf.json.JSONObject can not be handled. Configured return types are java.lang.Class

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

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

Render phase return type equivalent to void

2010-06-07 Thread Joost Schouten (ml)
like it to continue down the line so @SetupRender of the component it is mixed in is also executed. I have partially solved this by annotating the mixing with @MixinAfter, but now I execute the setup render methods of components that are never shown which not ideal. Is there another return type

Re: Render phase return type equivalent to void

2010-06-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Jun 2010 04:36:08 -0300, Joost Schouten (ml) joost...@jsportal.com wrote: Hi, Hi! Render phase return type equivalent to void: null. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina

Re: Render phase return type equivalent to void

2010-06-07 Thread Joost Schouten (ml)
So simple, I could have guessed that ;-) Thanks, Joost Thiago H. de Paula Figueiredo wrote: On Mon, 07 Jun 2010 04:36:08 -0300, Joost Schouten (ml) joost...@jsportal.com wrote: Hi, Hi! Render phase return type equivalent to void: null

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

2010-01-28 Thread Alexander Muthmann
=myZone/ /t:zone In both versions, I get the following error: Return type org.apache.tapestry5.internal.structure.BlockImpl can not be handled. Configured return types are... Could you please help me with this issue? I don't know, where my error is :( A test with request.isXHR() always returns false

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

Return type

2009-10-26 Thread Mite
A beginner question. A short answer will be enough. What is the difference between returning a .class and an object from the same class, by a method handler? Thank you, Mite -- View this message in context: http://www.nabble.com/Return-type-tp26058940p26058940.html Sent from the Tapestry

Re: Return type

2009-10-26 Thread Thiago H. de Paula Figueiredo
Em Mon, 26 Oct 2009 10:34:37 -0200, Mite mitemeis...@gmail.com escreveu: A beginner question. A short answer will be enough. What is the difference between returning a .class and an object from the same class, by a method handler? None. :) -- Thiago H. de Paula Figueiredo Independent Java

Re: Return type

2009-10-26 Thread Thiago H. de Paula Figueiredo
Em Mon, 26 Oct 2009 10:39:05 -0200, cordenier christophe christophe.corden...@gmail.com escreveu: Hi Hi! The difference is that you will be able to call accessors on the object that will allow to persist datas between request. Use @Persist on persisted properties for the target page.

Re: Return type

2009-10-26 Thread cordenier christophe
Thanks Thiago, my response was to quick :) 2009/10/26 Thiago H. de Paula Figueiredo thiag...@gmail.com Em Mon, 26 Oct 2009 10:39:05 -0200, cordenier christophe christophe.corden...@gmail.com escreveu: Hi Hi! The difference is that you will be able to call accessors on the object

Re: Return type

2009-10-26 Thread Mite
Thanks for the answers. :) -- View this message in context: http://www.nabble.com/Return-type-tp26058940p26059228.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-23 Thread Franz Amador
. The latter message gives me a much better clue as to where to start looking for the problem. -- View this message in context: http://n2.nabble.com/Return-type-org.apache.tapestry5.json.JSONObject-can-not-be-handled-tp3295186p3311089.html Sent from the Tapestry Users mailing list archive

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-23 Thread Franz Amador
request, or something on the browser side prevented Tapestry from recognizing the request as Ajax (it looks for an XHR header). -- View this message in context: http://n2.nabble.com/Return-type-org.apache.tapestry5.json.JSONObject-can-not-be-handled-tp3295186p3311186.html Sent from the Tapestry

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-22 Thread Franz Amador
Amador fgama...@yahoo.com Sent: Tuesday, July 21, 2009 11:04:05 PM Subject: Re: Return type org.apache.tapestry5.json.JSONObject can not be handled Is JavaScript disabled for that client's laptop? On Tue, Jul 21, 2009 at 10:55 AM, Franz Amadorfgama...@... wrote: Our Tapestry5/Dojo web app

Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-21 Thread Franz Amador
Our Tapestry5/Dojo web app works just fine everywhere except on one customer's laptop. There he gets this error: Return type org.apache.tapestry5.json.JSONObject can not be handled. Configured return types are java.lang.Class, java.lang.String, java.net.URL, org.apache.tapestry5.Link

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-21 Thread Howard Lewis Ship
Is JavaScript disabled for that client's laptop? On Tue, Jul 21, 2009 at 10:55 AM, Franz Amadorfgama...@yahoo.com wrote: Our Tapestry5/Dojo web app works just fine everywhere except on one customer's laptop.  There he gets this error: Return type org.apache.tapestry5.json.JSONObject can

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-21 Thread Howard Lewis Ship
app works just fine everywhere except on one customer's laptop.  There he gets this error: Return type org.apache.tapestry5.json.JSONObject can not be handled. Configured return types are java.lang.Class, java.lang.String, java.net.URL, org.apache.tapestry5.Link, org.apache.tapestry5

Re: ILink return type for page listener.

2006-10-24 Thread jimlaren
wrote: I'm trying to figure out how to use an ILink return type for a listener method in my page. I'm wanting to use it for the purpose of redirect-after-post in order so that the page the user is sent to displays the correct URL for it for page refreshes and user tracking statistics

ILink return type for page listener.

2006-10-23 Thread Leo Sakhvoruk
I'm trying to figure out how to use an ILink return type for a listener method in my page. I'm wanting to use it for the purpose of redirect-after-post in order so that the page the user is sent to displays the correct URL for it for page refreshes and user tracking statistics. It seems ok