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: text und in der Java Datei @InjectComponent

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, Thiago

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

2010-01-28 Thread Alexander Muthmann
type.js Nothing else On 28.01.2010 14:45, Thiago H. de Paula Figueiredo wrote: On Thu, 28 Jan 2010 11:36:07 -0200, Alexander Muthmann 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

Re: Unable to access www.chenillekit.org

2010-01-28 Thread Alexander Muthmann
Yeah, but thats not the "official" homepage with the demo application and working download links. But chenillekit.org seems to be down currently! Mit freundlichen Grüßen Alexander Muthmann On 28.01.2010, at 22:02, Christophe DUFOUR wrote: Hi, I can see chenillekit h

Re: Need help regarding Bean Edit Form

2010-02-01 Thread Alexander Muthmann
Hi Jagadesh, on this webpage http://tapestry.apache.org/tapestry5/guide/beaneditform.html you can find some simple examples for a beaneditform. There is also one point about using a custom model or modifing the exisiting, that's what you need. Another great source for examples is this one:

List loaded hibernate entities

2010-02-04 Thread Alexander Muthmann
Hi there, i'm currently looking for a solution for the following problem: i have an abstract class which is extended by several classes. Those classes are entities for my database, connected with hibernate. Now I'm looking for a possibility, to list all classes, which extend my abstract class.

Re: List loaded hibernate entities

2010-02-04 Thread Alexander Muthmann
Wow, that was fast, thanks a lot! getAllClassMetadata() was what I was looking for! On 04.02.2010 17:41, Thiago H. de Paula Figueiredo wrote: On Thu, 04 Feb 2010 14:25:44 -0200, Alexander Muthmann wrote: Hi there, Hi! i have an abstract class which is extended by several classes. Those

Re: [Tapestry Central] Ten Years of Tapestry

2010-02-04 Thread Alexander Muthmann
Congratulation Howard! And a big thank you to you and everybody, who is developing this great framework and supporting in this maillist! Mit freundlichen Grüßen Alexander Muthmann On 04.02.2010, at 19:39, Howard wrote: I recently realized that the first prototype of Tapestry was written

Re: Tapestry i18n t:Label

2010-02-05 Thread Alexander Muthmann
Is there a good reason not to enhance t:Label to do this? How can I help to get this implemented (in case I am not the only one who thinks this would be a good idea)? Hi Christoph, one solution could be, to override the whole ComponentDefaultProvider . You could use the implementation, whic

Re: [T5] Adding/removing entries to messages

2010-02-06 Thread Alexander Muthmann
Fast idea: You could override the existing provider for Message-Entries and add a function to look at google translate if the requestes label was not found. The service would be ComponentDefaultProvider and the needed method defaultLabel: public String defaultLabel(ComponentResources resources

Re: [T5] Adding/removing entries to messages

2010-02-07 Thread Alexander Muthmann
nce google translate isn't always perfect. On 6 February 2010 12:19, Alexander Muthmann wrote: Fast idea: You could override the existing provider for Message-Entries and add a function to look at google translate if the requestes label was not found. The service would be ComponentDefaultP

Updating Javascript-Code with a zone

2010-05-18 Thread Alexander Muthmann
Hi there, I currently work on an applications which uses a google-map-api based map with database-loaded data. To get the data in my map, I use a JSONArray which is returned from a method. function addLocations(){ var data = ${courierLocations}; for(i in data ){

Re: Updating Javascript-Code with a zone

2010-05-18 Thread Alexander Muthmann
Hi Thiago! Thanks a lot for your fast reply! This is one thing, I though about, but as far as I can remember, RenderSupport is only available during the render phase. So I cant use it in my actionlink... On Tue, May 18, 2010 at 5:53 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote

Re: Updating Javascript-Code with a zone

2010-05-18 Thread Alexander Muthmann
Thanks again. I'm sorry about the question, but I cant find any example of the RenderNotifier Component, so how to use it?? On Tue, May 18, 2010 at 7:20 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 18 May 2010 13:50:15 -0300, Alexander Muthmann <

Re: Updating Javascript-Code with a zone

2010-05-18 Thread Alexander Muthmann
Ok, Ill give it a try ;) thanks alot! Mit freundlichen Grüßen Alexander Muthmann On 18.05.2010, at 20:58, "Thiago H. de Paula Figueiredo" > wrote: On Tue, 18 May 2010 15:16:18 -0300, Alexander Muthmann > wrote: Thanks again. I'm sorry about the question, but I cant

Using a modules message-catalog in another module

2010-08-13 Thread Alexander Muthmann
Hi there, I'm currently developing a website which is extended by external modules. I have a top-menu which displays some basic classes and all registered classes provided by external modules. Now I have the following problem: Normally I would display a link with this code: ${message:mypage}

Re: Using a modules message-catalog in another module

2010-08-14 Thread Alexander Muthmann
tatic void contributeComponentMessagesSource( @Value("/foo/bar/baz.properties") Resource preappResource, OrderedConfiguration configuration) { configuration.add("PreApp", preappResource, "before:AppCatalog"); } On Fri, Aug

Re: [Tapestry Central] Tapestry Frequently Asked Questions

2010-08-18 Thread Alexander Muthmann
Hi there, It's great to have a FAQ for Tapestry. I just had a look at it and immediately found an issue I just ran into. The second FAQ is "Why do I get a ClassCastException ..." I have a service which takes some page-classes via the contribute method. In my code, I then want to compare th

Re: [Tapestry Central] Tapestry Frequently Asked Questions

2010-08-18 Thread Alexander Muthmann
-0300, Alexander Muthmann wrote: Is there any better possibility to compare those classes than to just compare their names which is a little bit annoying because there could be two classes with the same name but which aren't equal... If you have two different classes with the same fully qual

Re: [Tapestry Central] Tapestry Frequently Asked Questions

2010-08-18 Thread Alexander Muthmann
Thanks a lot for this idea! The call of: componentSource.getPage(Registered.class).getClass().equals(CurrentPage.class) works fine! On 18.08.2010 17:51, Thiago H. de Paula Figueiredo wrote: On Wed, 18 Aug 2010 12:31:15 -0300, Alexander Muthmann wrote: I just refer to this article

Re: Tapestry 5.2 preview

2010-08-18 Thread Alexander Muthmann
Hi, this is Igor Drobiazko's blog. Igor has written a very good book about tapestry in german. As he told in another post, the book will be published in english in some time! Greetings On 18.08.2010 17:55, 9902468 wrote: Hi, I know that this is little bit of and advertisement, but I just

Re: tapestry grid problem,when sorting,redirected to Start page

2010-08-20 Thread Alexander Muthmann
Hi bugxiaoya, I think you can solve this problem by setting the inPlace parameter of your grid. This causes your grid to act like a ajax component and prevents reloading the whole site. http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html

Re: tapestry grid problem,when sorting,redirected to Start page

2010-08-20 Thread Alexander Muthmann
Great, thanks for the feedback! Have a lot of fun with tapestry ;) On 20.08.2010 18:27, bugxiaoya wrote: thanks,it works. 2010/8/20 Alexander Muthmann [via Tapestry]< ml-node+2641993-90986904-102...@n5.nabble.com Hi bugxiaoya, I think you can solve this problem by setting the inPl

Re: Problem with components TML files

2010-09-10 Thread Alexander Muthmann
Another easy solution is to use the "Other Sources" Folder for your component tmls. Those files will be included in the right way. On 10.09.2010 02:51, Elin wrote: Thx a lot howard. U are always the man making the things easier for the people whos starting with tapestry. I have seen the 2 diff

Re: Tapestry tree render without recursion?

2010-09-10 Thread Alexander Muthmann
We tried to use recursive components for a menu-structure. In the end we limited our self to a maximum depth for the menu and now use 3 components which are nearly equal: TopMenu SubMenu SubSubMenu Not a clear solution but easy ;) On 10.09.2010 12:08, Elin wrote: Im making a component for