Re: what is called when - ajax version

2011-08-10 Thread Peter Stavrinides
> However, there's still the possibility that
> these are useful ... except that all the use cases I can come up with
> are better served by a "perthread" scoped service, rather than
> associated with the page instance.
I am using them for a one time setup of tab groups (essentially linkedhashmaps) 
in pages, and I find it to be a good fit for my purposes... of course there are 
several workarounds so its not essential to use pageAttached / pageDetached. 
Never thought of of using a "perthread" scoped service though.

Regards,
Peter




- Original Message -
From: "Howard Lewis Ship" 
To: "Tapestry users" 
Sent: Tuesday, 9 August, 2011 21:36:11 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: what is called when - ajax version

On Tue, Aug 9, 2011 at 7:23 AM, Lenny Primak  wrote:
> pageAttached/pageDetatched are being obsoleyed in the future versions of 
> tapestry.
> I would use setupRender instead.

If there are valid uses for pageAttached / pageDetached then they can
stay.  Some people do use them for things that should properly be done
inside the page's activate event handler, or inside a setupRender
render phase method.  However, there's still the possibility that
these are useful ... except that all the use cases I can come up with
are better served by a "perthread" scoped service, rather than
associated with the page instance.


>
>
>
> On Aug 9, 2011, at 8:09 AM, Paul Stanton  wrote:
>
>> Geoff,
>>
>> Thanks again, you are always helpful!
>>
>> Looks like pageAttached/pageDetached is exactly what i need. Combined with 
>> isXHR, works fine.
>>
>> I hadn't stumbled across this doc: 
>> http://tapestry.apache.org/page-life-cycle.html
>>
>> cheers, p.
>>
>> On 24/07/2011 10:37 PM, Geoff Callender wrote:
>>> Done - new example "AJAX: What is Called and When" added as:
>>>
>>>    
>>> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/whatiscalledandwhen
>>>
>>> However, I don't know that it helps solve your problem, unless maybe you 
>>> test request.isXHR() in pageAttached() and pageDetached()???
>>>
>>> Geoff
>>>
>>> On 18/07/2011, at 11:05 AM, Paul Stanton wrote:
>>>
>>>> In the past, I've found the "what is called when" example from the 
>>>> jumpstart collection very useful, however there is no version for the 
>>>> partial render or ajax case.
>>>>
>>>> I'm trying to figure out if there is an event I can handle which is called 
>>>> everytime a partial render or zone update is returned to the client, or 
>>>> everytime an asych request is made.
>>>>
>>>> Is there such a hook?
>>>>
>>>> regards, Paul.
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: what is called when - ajax version

2011-08-09 Thread Howard Lewis Ship
On Tue, Aug 9, 2011 at 7:23 AM, Lenny Primak  wrote:
> pageAttached/pageDetatched are being obsoleyed in the future versions of 
> tapestry.
> I would use setupRender instead.

If there are valid uses for pageAttached / pageDetached then they can
stay.  Some people do use them for things that should properly be done
inside the page's activate event handler, or inside a setupRender
render phase method.  However, there's still the possibility that
these are useful ... except that all the use cases I can come up with
are better served by a "perthread" scoped service, rather than
associated with the page instance.


>
>
>
> On Aug 9, 2011, at 8:09 AM, Paul Stanton  wrote:
>
>> Geoff,
>>
>> Thanks again, you are always helpful!
>>
>> Looks like pageAttached/pageDetached is exactly what i need. Combined with 
>> isXHR, works fine.
>>
>> I hadn't stumbled across this doc: 
>> http://tapestry.apache.org/page-life-cycle.html
>>
>> cheers, p.
>>
>> On 24/07/2011 10:37 PM, Geoff Callender wrote:
>>> Done - new example "AJAX: What is Called and When" added as:
>>>
>>>    
>>> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/whatiscalledandwhen
>>>
>>> However, I don't know that it helps solve your problem, unless maybe you 
>>> test request.isXHR() in pageAttached() and pageDetached()???
>>>
>>> Geoff
>>>
>>> On 18/07/2011, at 11:05 AM, Paul Stanton wrote:
>>>
 In the past, I've found the "what is called when" example from the 
 jumpstart collection very useful, however there is no version for the 
 partial render or ajax case.

 I'm trying to figure out if there is an event I can handle which is called 
 everytime a partial render or zone update is returned to the client, or 
 everytime an asych request is made.

 Is there such a hook?

 regards, Paul.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org

>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: what is called when - ajax version

2011-08-09 Thread Lenny Primak
pageAttached/pageDetatched are being obsoleyed in the future versions of 
tapestry. 
I would use setupRender instead. 



On Aug 9, 2011, at 8:09 AM, Paul Stanton  wrote:

> Geoff,
> 
> Thanks again, you are always helpful!
> 
> Looks like pageAttached/pageDetached is exactly what i need. Combined with 
> isXHR, works fine.
> 
> I hadn't stumbled across this doc: 
> http://tapestry.apache.org/page-life-cycle.html
> 
> cheers, p.
> 
> On 24/07/2011 10:37 PM, Geoff Callender wrote:
>> Done - new example "AJAX: What is Called and When" added as:
>> 
>>
>> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/whatiscalledandwhen
>> 
>> However, I don't know that it helps solve your problem, unless maybe you 
>> test request.isXHR() in pageAttached() and pageDetached()???
>> 
>> Geoff
>> 
>> On 18/07/2011, at 11:05 AM, Paul Stanton wrote:
>> 
>>> In the past, I've found the "what is called when" example from the 
>>> jumpstart collection very useful, however there is no version for the 
>>> partial render or ajax case.
>>> 
>>> I'm trying to figure out if there is an event I can handle which is called 
>>> everytime a partial render or zone update is returned to the client, or 
>>> everytime an asych request is made.
>>> 
>>> Is there such a hook?
>>> 
>>> regards, Paul.
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: what is called when - ajax version

2011-08-09 Thread Paul Stanton

Geoff,

Thanks again, you are always helpful!

Looks like pageAttached/pageDetached is exactly what i need. Combined 
with isXHR, works fine.


I hadn't stumbled across this doc: 
http://tapestry.apache.org/page-life-cycle.html


cheers, p.

On 24/07/2011 10:37 PM, Geoff Callender wrote:

Done - new example "AJAX: What is Called and When" added as:


http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/whatiscalledandwhen

However, I don't know that it helps solve your problem, unless maybe you test 
request.isXHR() in pageAttached() and pageDetached()???

Geoff

On 18/07/2011, at 11:05 AM, Paul Stanton wrote:


In the past, I've found the "what is called when" example from the jumpstart 
collection very useful, however there is no version for the partial render or ajax case.

I'm trying to figure out if there is an event I can handle which is called 
everytime a partial render or zone update is returned to the client, or 
everytime an asych request is made.

Is there such a hook?

regards, Paul.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: what is called when - ajax version

2011-07-24 Thread Geoff Callender
Done - new example "AJAX: What is Called and When" added as:


http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/whatiscalledandwhen

However, I don't know that it helps solve your problem, unless maybe you test 
request.isXHR() in pageAttached() and pageDetached()???

Geoff

On 18/07/2011, at 11:05 AM, Paul Stanton wrote:

> In the past, I've found the "what is called when" example from the jumpstart 
> collection very useful, however there is no version for the partial render or 
> ajax case.
> 
> I'm trying to figure out if there is an event I can handle which is called 
> everytime a partial render or zone update is returned to the client, or 
> everytime an asych request is made.
> 
> Is there such a hook?
> 
> regards, Paul.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: what is called when - ajax version

2011-07-19 Thread LLTYK
Not really.

--
View this message in context: 
http://tapestry-users.832.n2.nabble.com/what-is-called-when-ajax-version-tp6593136p6598840.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



what is called when - ajax version

2011-07-17 Thread Paul Stanton
In the past, I've found the "what is called when" example from the 
jumpstart collection very useful, however there is no version for the 
partial render or ajax case.


I'm trying to figure out if there is an event I can handle which is 
called everytime a partial render or zone update is returned to the 
client, or everytime an asych request is made.


Is there such a hook?

regards, Paul.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org