Re: Looking for 'magic RuntimeException wrapper' after component throws checked Exception

2009-02-09 Thread Kristian Marinkovic
it would we nice to be able to add an exception handler for such an exception ... onExceptionFromCheckedException(Exception e) checked exceptions are always related to the business domain and usually always need to be refelected in the user interface in an apropriate way see also https://issu

Re: How to implement a long lasting operation waiting page

2009-02-09 Thread Ville Virtanen
Hi, Thread source takes the exception handler as parameter and I think you can have a "PercentageCompleteHandler" also that it could take. That handler should contain methods to set it ready, and to ask whether the task is complete. Set this PercentageCompleteHandler to the session of the execut

Re: Hibernate ID

2009-02-09 Thread Luther Baker
Thank you Thiago. -Luther On Mon, Feb 9, 2009 at 8:53 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 09 Feb 2009 22:35:52 -0300, Luther Baker > escreveu: > > This is a little offtopic - so I apologize in advance but I'm building >> Tapestry applications and have a H

Re: Hibernate ID

2009-02-09 Thread Thiago H. de Paula Figueiredo
Em Mon, 09 Feb 2009 22:35:52 -0300, Luther Baker escreveu: This is a little offtopic - so I apologize in advance but I'm building Tapestry applications and have a Hibernate question that I'd like to pose here. Is there preferred type for simple Hibernate IDs? I always use an artificial (i.e

Hibernate ID

2009-02-09 Thread Luther Baker
This is a little offtopic - so I apologize in advance but I'm building Tapestry applications and have a Hibernate question that I'd like to pose here. Is there preferred type for simple Hibernate IDs? Simply stated, I'm asking about the two orthogonal choices: (native vs object, range or size) I

Re: Looking for 'magic RuntimeException wrapper' after component throws checked Exception

2009-02-09 Thread Howard Lewis Ship
The question is: what should you do with thrown exceptions from such a method? I wonder if we could go further down the meta-programming path, by introducing a method annotation to clue Tapestry in to what to do in case of a thrown exception in the method ... and that could be implemented as metho

Re: How can I modify the rendering of grid rows?

2009-02-09 Thread Thiago H. de Paula Figueiredo
Em Mon, 09 Feb 2009 22:04:25 -0300, Jonathan O'Connor escreveu: Thiago, yes, I know about ComponentResources.createXXXLink(), but how do I sneak it into the JavaScript? I guess I have to generate some special java script in afterRender. I'm sure I saw code like in the WIKI. The most ele

T5: zone broken safari/chrome

2009-02-09 Thread Andreas Idl
We found out that the actual bundled prototype crashes when updating a zone within safari or chrome. The problem seems to be in the broken findElements function of protoype. See: http://groups.google.com/group/prototype-scriptaculous/ browse_thread/thread/396f36940ff45bb1 Does someone has a

Re: How can I modify the rendering of grid rows?

2009-02-09 Thread Jonathan O'Connor
Thiago, yes, I know about ComponentResources.createXXXLink(), but how do I sneak it into the JavaScript? I guess I have to generate some special java script in afterRender. I'm sure I saw code like in the WIKI. Ciao, Jonathan On 10/02/2009 01:22, Thiago H. de Paula Figueiredo wrote: Em Mon, 0

Re: [ANN] JumpStart 4.2 released - deploy to Tomcat too!

2009-02-09 Thread manuel aldana
Great work! thanks. Geoff Callender schrieb: Hi all, JumpStart 4.2 is now available. Now you can develop with Jetty, then deploy to JBoss, Glassfish, and Tomcat! Use it live: http://jumpstart.doublenegative.com.au:8080/jumpstart/ or download it: http://jumpstart.doublenegative

Re: How can I modify the rendering of grid rows?

2009-02-09 Thread Thiago H. de Paula Figueiredo
Em Mon, 09 Feb 2009 21:09:06 -0300, Jonathan O'Connor escreveu: Thiago, Hello, Jonathan! I am most impressed with Prototype. I really like using $$(). Me too. As I can see, you quickly learned enough Prototype in a couple hours to do what you needed. :) Here's my code to add onmouse

Re: How can I modify the rendering of grid rows?

2009-02-09 Thread Jonathan O'Connor
Thiago, I am most impressed with Prototype. I really like using $$(). Here's my code to add onmouseover, onmouseout and onclick handlers for a zebra striped table. Unfortunately, I have to support IE6, so I couldn't use :hover for the mouse over/out handlers. Tapestry.onDOMLoaded(function() {

Re: How to style a button

2009-02-09 Thread Filip S. Adamsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yeah, well, asking for IE to do things right is like asking for peace in the world... it's a beautiful thought, but it ain't gonna happen. Sadly. - -Filip On 2009-02-09 23:48, Michael Gentry wrote: > I don't remember the exact issue (that was a few

Re: [ANN] Tapestry 5 Caffe

2009-02-09 Thread Thiago H. de Paula Figueiredo
Em Mon, 09 Feb 2009 20:38:15 -0300, Borut Bolčina escreveu: Hello, Hi! I set the site up with minimal tweaking and configuration, so don't judge the look and welcome screen. Try it out: http://tapestry5.ideascale.com/ I do not see this site as JIRA, but as a brainstorming place where idea

Re: Looking for 'magic RuntimeException wrapper' after component throws checked Exception

2009-02-09 Thread manuel aldana
Thanks, I guess I found it: RenderPhaseMethodWorker.java line 147: builder.addln("catch (RuntimeException ex) { throw ex; }"); builder.addln("catch (Exception ex) { throw new RuntimeException(ex); }"); btw: all this dynamic magic is really nice from runtime-view but also really tough to debug :

[ANN] Tapestry 5 Caffe

2009-02-09 Thread Borut Bolčina
Hello, while I was preparing the survey for Tapestry 5 components I noticed that the same company is offering another free hosted software called IdeaScale. I decided to play with it for a few minutes to find out what it was. I set the site up with minimal tweaking and configuration, so don't jud

Re: Construction of service 'Alias' has failed due to recursion

2009-02-09 Thread Thiago H. de Paula Figueiredo
One situation that can raise that exception is the existence of non-static methods in Tapestry-IoC class modules (for example, AppModule). I've had this problem once. By the way, it happened for more people in this list too, so check the archives. ;) -- Thiago H. de Paula Figueiredo Indepen

Re: How to style a button

2009-02-09 Thread Michael Gentry
I don't remember the exact issue (that was a few brain cells ago), but I think it only did the first button's action and ignored the others. My application was working just fine until I tried it in IE. (How many people have said that before?) I'm sure you could ask the Google Brain for more deta

Construction of service 'Alias' has failed due to recursion

2009-02-09 Thread superoverdrive
hi there! what's wrong with the following service? AppModule.java public static void bind(ServiceBinder binder) { binder.bind(DBService.class).scope("singleton"); } DBService.java public class DBService { private Session session;

Re: Looking for 'magic RuntimeException wrapper' after component throws checked Exception

2009-02-09 Thread Howard Lewis Ship
Yes, the generated code catches the thrown exception and wraps it. On Mon, Feb 9, 2009 at 1:24 PM, Ulrich Stärk wrote: > This probably happens during class transformation. I'd look somewhere in the > o.a.t.transform packages. > > Uli > > manuel aldana schrieb: >> >> Hi, >> >> when a custom compon

Re: Looking for 'magic RuntimeException wrapper' after component throws checked Exception

2009-02-09 Thread Ulrich Stärk
This probably happens during class transformation. I'd look somewhere in the o.a.t.transform packages. Uli manuel aldana schrieb: Hi, when a custom component throws a checked Exception it seems to be handled by a kind of Interceptor, but I cannot find it while debugging or looking at source

Looking for 'magic RuntimeException wrapper' after component throws checked Exception

2009-02-09 Thread manuel aldana
Hi, when a custom component throws a checked Exception it seems to be handled by a kind of Interceptor, but I cannot find it while debugging or looking at source code. I am sure there is some higher exception wrapping magic involved here (though I haven't found any Interceptor or AOP style wr

Re: T5 service per request

2009-02-09 Thread Howard Lewis Ship
I believe there's an outstanding issue for this. On Mon, Feb 9, 2009 at 10:20 AM, Filip S. Adamsen wrote: > Perhaps Tapestry should throw an exception when one tries to do this instead > of failing silently? :) > > -Filip > > On 2009-02-08 18:03, Howard Lewis Ship wrote: >> >> You need to define

Re: How to implement a long lasting operation waiting page

2009-02-09 Thread Hugo Palma
Thanks. But how can the client side know when the task is complete ? I tried to set a persistent field just after the task is complete but Tapestry throws an exception saying that it can't persist the field, probably because it's getting executed inside a thread. I have the client side polling the

Re: [T5] URL Manipulation

2009-02-09 Thread Filip S. Adamsen
Whoa, that's some amazing stuff! Thanks Andreas. :) -Filip On 2009-02-06 00:24, Andreas Andreou wrote: Hi, see http://tuckey.org/urlrewrite/manual/2.6/ (i see they also have a 3.2 version) Just define some outbound-rules (instead of rules) for the cases you're interested, i.e. ^/app/

T5: D.O.B. Date component

2009-02-09 Thread James Sherwood
Hello, Just wondering what people are using for a date of birth component. I tried using the built in datefield but users complained that it starts off in the current year and you have to keep going back to far to get to their date. I agree(You and I know you could just choose a date then

Re: How to style a button

2009-02-09 Thread Filip S. Adamsen
Oww, I had no idea... *edits some of his code* :) Thanks for the tip from here as well! -Filip On 2009-02-09 15:31, Michael Gentry wrote: This is slightly OT, but you do not want to use the BUTTON tag. IE (at least IE 6) does not handle multiple BUTTONs in a FORM correctly. It will cause you

Re: T5 service per request

2009-02-09 Thread Filip S. Adamsen
Perhaps Tapestry should throw an exception when one tries to do this instead of failing silently? :) -Filip On 2009-02-08 18:03, Howard Lewis Ship wrote: You need to define an interface for the service; only services with interfaces can be proxied, and only proxied interfaces can have non-defa

Re: How can I modify the rendering of grid rows?

2009-02-09 Thread Thiago H. de Paula Figueiredo
Em Mon, 09 Feb 2009 14:40:33 -0300, Jonathan O'Connor escreveu: Thiago, The mouse out and over handlers change the background color, as the user moves teh mouse over the table. This can be done in CSS using the :hover pseudo-selector. I also need to set the onclick of each td so it goes

Re: How can I modify the rendering of grid rows?

2009-02-09 Thread Jonathan O'Connor
Thiago, The mouse out and over handlers change the background color, as the user moves teh mouse over the table. I also need to set the onclick of each td so it goes to a new page. I'll have a look at doing it the prototype way :-(. I suppose it really is the proper way to that. I had another

Re: How can I modify the rendering of grid rows?

2009-02-09 Thread Thiago H. de Paula Figueiredo
Em Mon, 09 Feb 2009 14:19:20 -0300, Jonathan O'Connor escreveu: Hi, I would like to modify the way grid rows are rendered. I want add an onmouseout, onmouseover handlers to the tags. Rendering or adding behaviour? :) I suppose I could do a load of cut and paste, and reimplement the grid

How can I modify the rendering of grid rows?

2009-02-09 Thread Jonathan O'Connor
Hi, I would like to modify the way grid rows are rendered. I want add an onmouseout, onmouseover handlers to the tags. I suppose I could do a load of cut and paste, and reimplement the grid, but is there an easier way? Ciao, Jonathan

Re: T5: Type coercion from String to Enum

2009-02-09 Thread Andy Pahne
Folke schrieb: On Fri, Feb 6, 2009 at 13:32, Ulrich Stärk wrote: Does it work when you move the Unit enum into it's own class file? No, it doesn't. But I now know why: There are two different Unit classes from different ClassLoaders. So, I moved Unit out of Tapestry's app-package and

Re: How to style a button

2009-02-09 Thread kace
Appreciate the tips fellas. Regards, ..kace -- View this message in context: http://www.nabble.com/How-to-style-a-button-tp21893032p21914049.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubs

Re: How to style a button

2009-02-09 Thread Michael Gentry
This is slightly OT, but you do not want to use the BUTTON tag. IE (at least IE 6) does not handle multiple BUTTONs in a FORM correctly. It will cause you massive pain. Use CSS on the INPUT, instead (and I see someone else already pointed you to some articles for that). mrg PS. Safari and Firef

Re: Dynamic Variables in Asset declarations

2009-02-09 Thread Dave Greggory
Hey Jonathan, Appreciate your idea, but they on a CDN server because we don't want to serve static content from the web application and a CDN (http://en.wikipedia.org/wiki/Content_Delivery_Network) is much better performing at delivering static media. Dave - Original Message From:

[ANN] JumpStart 4.2 released - deploy to Tomcat too!

2009-02-09 Thread Geoff Callender
Hi all, JumpStart 4.2 is now available. Now you can develop with Jetty, then deploy to JBoss, Glassfish, and Tomcat! Use it live: http://jumpstart.doublenegative.com.au:8080/jumpstart/ or download it: http://jumpstart.doublenegative.com.au Please keep the feedback and s

Re: Dynamic Variables in Asset declarations

2009-02-09 Thread Jonathan O'Connor
Dave, thinking out of the box, can you instead set up some server cron job to copy the css files over from the other web server to your server. Would that make it easier? Jonathan On 08/02/2009 14:07, Dave Greggory wrote: So, tell me whether I have this straight. In order to create Asset ins

[T5] Dynamic generation of sitemap.xml

2009-02-09 Thread TNO
Hello, I have one tapestry application with many different databases. So I want to generate dynamically the sitemap.xml file. I would like to generate it when I deploy the application. Is it possible to get the server name and the context path in the AppModule class with the RequestGlobals class

Re: Localization in Services

2009-02-09 Thread Nicolas Charles
Blower, Andy wrote: Not sure how generally useful that would be, but it would solve the problem in an easy way. Thinking some more about this, would it not be easier to simply pass the messages from the page/component event handler method into the service method that's called to send the emai