Re: What's heartbeat ?

2008-01-07 Thread Kalle Korhonen
First result with a google search tapestry 5 heartbeat: http://tapestry.formos.com/nightly/tapestry5/apidocs/org/apache/tapestry/services/Heartbeat.html Kalle On 1/6/08, Michael Courcy [EMAIL PROTECTED] wrote: Hi list, As I start to read the code on components I often see heartbeat

Re: What's heartbeat ?

2008-01-07 Thread Michael Courcy
Yes thanks, I've done this first of course. It's a start but it does not bring so much light in my point of view. For instance : it does not say what's the difference between calling formSupport.defer or heartbeat.defer, do you see the difference and the conscequences on request treatment

Re: What's heartbeat ?

2008-01-07 Thread Gabriel Landais
Michael Courcy a écrit : If you look at this exemple : TreeGridComponent http://tapestry5-treegrid.googlecode.com/svn/trunk/tapestry5-treegrid/src/main/java/org/codelutin/tapestry/components/TreeGrid.java a hearbeat.begin is called in beginRender and heartbeat.end is called in afterRender

Re: What's heartbeat ?

2008-01-07 Thread Michael Courcy
Gabriel Landais a écrit : Michael Courcy a écrit : If you look at this exemple : TreeGridComponent http://tapestry5-treegrid.googlecode.com/svn/trunk/tapestry5-treegrid/src/main/java/org/codelutin/tapestry/components/TreeGrid.java a hearbeat.begin is called in beginRender and heartbeat.end

Re: What's heartbeat ?

2008-01-07 Thread Michael Courcy
Gabriel Landais a écrit : Michael Courcy a écrit : If you look at this exemple : TreeGridComponent http://tapestry5-treegrid.googlecode.com/svn/trunk/tapestry5-treegrid/src/main/java/org/codelutin/tapestry/components/TreeGrid.java a hearbeat.begin is called in beginRender and heartbeat.end

Re: What's heartbeat ?

2008-01-07 Thread Chris Lewis
I'm not an expert on this, but I can offer you a real need for defer(). Suppose you have a mixin that attaches some trivial piece of JavaScript to components that use it; for example, a key logger. As far as the JS, what you need to do is register a few DOM event handlers on an element -

Re: What's heartbeat ?

2008-01-07 Thread Steph
Your code Gabriel work as well without heartbeats ... ;-) Stephane Gabriel Landais a écrit : Michael Courcy a écrit : If you look at this exemple : TreeGridComponent

Re: What's heartbeat ?

2008-01-07 Thread Michael Courcy
Hi Chris, Chris Lewis a écrit : I'm not an expert on this, but I can offer you a real need for defer(). Suppose you have a mixin that attaches some trivial piece of JavaScript to components that use it; for example, a key logger. As far as the JS, what you need to do is register a few DOM

Re: What's heartbeat ?

2008-01-07 Thread Gabriel Landais
Steph a écrit : Your code Gabriel work as well without heartbeats ... ;-) Stephane Yes it is ;) Until you use defer, it should be useless. And as I think that I'll not need it, I remove it heartbeat reference. Gabriel -

Re: What's heartbeat ?

2008-01-07 Thread Kristian Marinkovic
, kirs Michael Courcy [EMAIL PROTECTED] 07.01.2008 16:17 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: What's heartbeat ? Hi Chris, Chris Lewis a écrit : I'm not an expert on this, but I can offer you a real

Re: What's heartbeat ?

2008-01-07 Thread Chris Lewis
Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: What's heartbeat ? Hi Chris, Chris Lewis a écrit : I'm not an expert on this, but I can offer you a real need for defer(). Suppose you have a mixin that attaches some

Re: What's heartbeat ?

2008-01-07 Thread Chris Lewis
One reason Michael Courcy wrote: Gabriel Landais a écrit : Michael Courcy a écrit : If you look at this exemple : TreeGridComponent http://tapestry5-treegrid.googlecode.com/svn/trunk/tapestry5-treegrid/src/main/java/org/codelutin/tapestry/components/TreeGrid.java a hearbeat.begin is called

Re: What's heartbeat ?

2008-01-07 Thread Howard Lewis Ship
users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: What's heartbeat ? Hi Chris, Chris Lewis a écrit : I'm not an expert on this, but I can offer you a real need for defer(). Suppose you have a mixin that attaches some

What's heartbeat ?

2008-01-06 Thread Michael Courcy
Hi list, As I start to read the code on components I often see heartbeat @Environmental private Heartbeat heartbeat; with heartbeat.begin and heartbeat.end Can someone explain the role of this object and its methods invocations (begin and end) beacause it's not really clear in my mind.