Re: [T5] Get Response data

2009-10-20 Thread iapilgrim

Thank  Ben,
I've followed link
http://www.nabble.com/T5---Stream-source-output-to-text-file-td14133292.html#a14142927
And it's ok now.

ben.gidley wrote:
> 
> Do you mean the links to those files aren't in the response or the files
> themselves aren't in?
> The links should be in, but the files are handles as seperate HTTP
> requests
> so don't come via the rendering part of tapestry.
> 
> 
> Ben Gidley
> 
> www.gidley.co.uk
> b...@gidley.co.uk
> 
> 
> On Tue, Oct 20, 2009 at 4:13 AM, iapilgrim  wrote:
> 
>>
>> Hi Ben,
>> I've tried to use your solution. But it doesn't work as expected.
>> I expect to get "entirely" response data.
>> Ex, Some css and js I've injected to page.
>> > href="/osmoz/assets/vfs/networth/styles/networth.css">
>> But it seems we don't get those files  at this phase.
>> Do you have any idea?
>>
>> Thanks,
>> Van
>>
>>
>>
>> iapilgrim wrote:
>> >
>> > Ah yes, thank Ben.
>> > I'm using your CacheControl Module in my project.
>> > Thank for your contribution. You do a great job.
>> > Thank,
>> > Van
>> >
>> >
>> > ben.gidley wrote:
>> >>
>> >> If you look at the code behind the tapestry caching library in
>> >> ioko-tapestry-commons -
>> >>
>> http://code.google.com/p/ioko-tapestry-commons/source/browse/trunk/tapestry-commons/tapestry-cacheControl/src/main/java/uk/co/ioko/tapestry/cacheControl/services/CacheControlMarkupRenderer.java
>> >> This wraps the render lifecycle and captures the output.
>> >>
>> >> Ben Gidley
>> >>
>> >> www.gidley.co.uk
>> >> b...@gidley.co.uk
>> >>
>> >>
>> >> On Mon, Oct 19, 2009 at 11:53 AM, iapilgrim 
>> wrote:
>> >>
>> >>>
>> >>> No matter what cache strategy is, I want to get entirely response
>> data.
>> >>> How to get  entirely response data is my question ?
>> >>> Anyone can help?
>> >>>
>> >>>
>> >>> Martin Strand-4 wrote:
>> >>> >
>> >>> > Not really answering your question but if you want to cache entire
>> >>> pages
>> >>> I
>> >>> > would recommend using a caching proxy such as squid or varnish.
>> >>> > Of course it depends on your specific use case...
>> >>> >
>> >>> >
>> >>> > On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim 
>> >>> wrote:
>> >>> >
>> >>> >
>> >>> >>
>> >>> >> Hi all,
>> >>> >> I'm using T5.1.0.5. My goal is to get page response data and cache
>> it
>> >>> for
>> >>> >> future use.
>> >>> >> One way to achieve that is in after render phase or clean up
>> render
>> >>> >> phase.
>> >>> >> My questions are
>> >>> >> + Are data at after render phase final?
>> >>> >> I mean does T5 inject more data after that?
>> >>> >> + If I want to get response data of many pages how do I do that in
>> >>> one
>> >>> >> place.
>> >>> >> Decorate or contribute after render phase for example?
>> >>> >> + I has followed request-response processing.
>> >>> >> http://uli.spielviel.de/~uli/tapestry_request_processing.png
>> >>> >> tapestry_request_processing
>> >>> >> But find no way to achieve this.
>> >>> >>
>> >>> >> How about your idea?
>> >>> >> Thank in advance,
>> >>> >> Van
>> >>> >
>> >>> >
>> -
>> >>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> >>> > For additional commands, e-mail: users-h...@tapestry.apache.org
>> >>> >
>> >>> >
>> >>> >
>> >>>
>> >>> --
>> >>> View this message in context:
>> >>> http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html
>> >>> Sent from the Tapestry - User 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
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-T5--Get-Response-data-tp25902064p25969127.html
>> Sent from the Tapestry - User 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
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Get-Response-data-tp25902064p25973386.html
Sent from the Tapestry - User 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



Re: [T5] Get Response data

2009-10-20 Thread Ben Gidley
Do you mean the links to those files aren't in the response or the files
themselves aren't in?
The links should be in, but the files are handles as seperate HTTP requests
so don't come via the rendering part of tapestry.


Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk


On Tue, Oct 20, 2009 at 4:13 AM, iapilgrim  wrote:

>
> Hi Ben,
> I've tried to use your solution. But it doesn't work as expected.
> I expect to get "entirely" response data.
> Ex, Some css and js I've injected to page.
>  href="/osmoz/assets/vfs/networth/styles/networth.css">
> But it seems we don't get those files  at this phase.
> Do you have any idea?
>
> Thanks,
> Van
>
>
>
> iapilgrim wrote:
> >
> > Ah yes, thank Ben.
> > I'm using your CacheControl Module in my project.
> > Thank for your contribution. You do a great job.
> > Thank,
> > Van
> >
> >
> > ben.gidley wrote:
> >>
> >> If you look at the code behind the tapestry caching library in
> >> ioko-tapestry-commons -
> >>
> http://code.google.com/p/ioko-tapestry-commons/source/browse/trunk/tapestry-commons/tapestry-cacheControl/src/main/java/uk/co/ioko/tapestry/cacheControl/services/CacheControlMarkupRenderer.java
> >> This wraps the render lifecycle and captures the output.
> >>
> >> Ben Gidley
> >>
> >> www.gidley.co.uk
> >> b...@gidley.co.uk
> >>
> >>
> >> On Mon, Oct 19, 2009 at 11:53 AM, iapilgrim 
> wrote:
> >>
> >>>
> >>> No matter what cache strategy is, I want to get entirely response data.
> >>> How to get  entirely response data is my question ?
> >>> Anyone can help?
> >>>
> >>>
> >>> Martin Strand-4 wrote:
> >>> >
> >>> > Not really answering your question but if you want to cache entire
> >>> pages
> >>> I
> >>> > would recommend using a caching proxy such as squid or varnish.
> >>> > Of course it depends on your specific use case...
> >>> >
> >>> >
> >>> > On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim 
> >>> wrote:
> >>> >
> >>> >
> >>> >>
> >>> >> Hi all,
> >>> >> I'm using T5.1.0.5. My goal is to get page response data and cache
> it
> >>> for
> >>> >> future use.
> >>> >> One way to achieve that is in after render phase or clean up render
> >>> >> phase.
> >>> >> My questions are
> >>> >> + Are data at after render phase final?
> >>> >> I mean does T5 inject more data after that?
> >>> >> + If I want to get response data of many pages how do I do that in
> >>> one
> >>> >> place.
> >>> >> Decorate or contribute after render phase for example?
> >>> >> + I has followed request-response processing.
> >>> >> http://uli.spielviel.de/~uli/tapestry_request_processing.png
> >>> >> tapestry_request_processing
> >>> >> But find no way to achieve this.
> >>> >>
> >>> >> How about your idea?
> >>> >> Thank in advance,
> >>> >> Van
> >>> >
> >>> > -
> >>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >>> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >>> >
> >>> >
> >>> >
> >>>
> >>> --
> >>> View this message in context:
> >>> http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html
> >>> Sent from the Tapestry - User 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
> >>>
> >>>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-T5--Get-Response-data-tp25902064p25969127.html
> Sent from the Tapestry - User 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
>
>


Re: [T5] Get Response data

2009-10-19 Thread iapilgrim

Hi Ben,
I've tried to use your solution. But it doesn't work as expected.
I expect to get "entirely" response data.
Ex, Some css and js I've injected to page.

But it seems we don't get those files  at this phase.
Do you have any idea?

Thanks,
Van



iapilgrim wrote:
> 
> Ah yes, thank Ben.
> I'm using your CacheControl Module in my project.
> Thank for your contribution. You do a great job.
> Thank,
> Van
> 
> 
> ben.gidley wrote:
>> 
>> If you look at the code behind the tapestry caching library in
>> ioko-tapestry-commons -
>> http://code.google.com/p/ioko-tapestry-commons/source/browse/trunk/tapestry-commons/tapestry-cacheControl/src/main/java/uk/co/ioko/tapestry/cacheControl/services/CacheControlMarkupRenderer.java
>> This wraps the render lifecycle and captures the output.
>> 
>> Ben Gidley
>> 
>> www.gidley.co.uk
>> b...@gidley.co.uk
>> 
>> 
>> On Mon, Oct 19, 2009 at 11:53 AM, iapilgrim  wrote:
>> 
>>>
>>> No matter what cache strategy is, I want to get entirely response data.
>>> How to get  entirely response data is my question ?
>>> Anyone can help?
>>>
>>>
>>> Martin Strand-4 wrote:
>>> >
>>> > Not really answering your question but if you want to cache entire
>>> pages
>>> I
>>> > would recommend using a caching proxy such as squid or varnish.
>>> > Of course it depends on your specific use case...
>>> >
>>> >
>>> > On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim 
>>> wrote:
>>> >
>>> >
>>> >>
>>> >> Hi all,
>>> >> I'm using T5.1.0.5. My goal is to get page response data and cache it
>>> for
>>> >> future use.
>>> >> One way to achieve that is in after render phase or clean up render
>>> >> phase.
>>> >> My questions are
>>> >> + Are data at after render phase final?
>>> >> I mean does T5 inject more data after that?
>>> >> + If I want to get response data of many pages how do I do that in
>>> one
>>> >> place.
>>> >> Decorate or contribute after render phase for example?
>>> >> + I has followed request-response processing.
>>> >> http://uli.spielviel.de/~uli/tapestry_request_processing.png
>>> >> tapestry_request_processing
>>> >> But find no way to achieve this.
>>> >>
>>> >> How about your idea?
>>> >> Thank in advance,
>>> >> Van
>>> >
>>> > -------------
>>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> > For additional commands, e-mail: users-h...@tapestry.apache.org
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html
>>> Sent from the Tapestry - User 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
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Get-Response-data-tp25902064p25969127.html
Sent from the Tapestry - User 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



Re: [T5] Get Response data

2009-10-19 Thread iapilgrim

Ah yes, thank Ben.
I'm using your CacheControl Module in my project.
Thank for your contribution. You do a great job.
Thank,
Van


ben.gidley wrote:
> 
> If you look at the code behind the tapestry caching library in
> ioko-tapestry-commons -
> http://code.google.com/p/ioko-tapestry-commons/source/browse/trunk/tapestry-commons/tapestry-cacheControl/src/main/java/uk/co/ioko/tapestry/cacheControl/services/CacheControlMarkupRenderer.java
> This wraps the render lifecycle and captures the output.
> 
> Ben Gidley
> 
> www.gidley.co.uk
> b...@gidley.co.uk
> 
> 
> On Mon, Oct 19, 2009 at 11:53 AM, iapilgrim  wrote:
> 
>>
>> No matter what cache strategy is, I want to get entirely response data.
>> How to get  entirely response data is my question ?
>> Anyone can help?
>>
>>
>> Martin Strand-4 wrote:
>> >
>> > Not really answering your question but if you want to cache entire
>> pages
>> I
>> > would recommend using a caching proxy such as squid or varnish.
>> > Of course it depends on your specific use case...
>> >
>> >
>> > On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim 
>> wrote:
>> >
>> >
>> >>
>> >> Hi all,
>> >> I'm using T5.1.0.5. My goal is to get page response data and cache it
>> for
>> >> future use.
>> >> One way to achieve that is in after render phase or clean up render
>> >> phase.
>> >> My questions are
>> >> + Are data at after render phase final?
>> >> I mean does T5 inject more data after that?
>> >> + If I want to get response data of many pages how do I do that in one
>> >> place.
>> >> Decorate or contribute after render phase for example?
>> >> + I has followed request-response processing.
>> >> http://uli.spielviel.de/~uli/tapestry_request_processing.png
>> >> tapestry_request_processing
>> >> But find no way to achieve this.
>> >>
>> >> How about your idea?
>> >> Thank in advance,
>> >> Van
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> > For additional commands, e-mail: users-h...@tapestry.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html
>> Sent from the Tapestry - User 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
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956852.html
Sent from the Tapestry - User 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



Re: [T5] Get Response data

2009-10-19 Thread Ben Gidley
If you look at the code behind the tapestry caching library in
ioko-tapestry-commons -
http://code.google.com/p/ioko-tapestry-commons/source/browse/trunk/tapestry-commons/tapestry-cacheControl/src/main/java/uk/co/ioko/tapestry/cacheControl/services/CacheControlMarkupRenderer.java
This wraps the render lifecycle and captures the output.

Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk


On Mon, Oct 19, 2009 at 11:53 AM, iapilgrim  wrote:

>
> No matter what cache strategy is, I want to get entirely response data.
> How to get  entirely response data is my question ?
> Anyone can help?
>
>
> Martin Strand-4 wrote:
> >
> > Not really answering your question but if you want to cache entire pages
> I
> > would recommend using a caching proxy such as squid or varnish.
> > Of course it depends on your specific use case...
> >
> >
> > On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim 
> wrote:
> >
> >
> >>
> >> Hi all,
> >> I'm using T5.1.0.5. My goal is to get page response data and cache it
> for
> >> future use.
> >> One way to achieve that is in after render phase or clean up render
> >> phase.
> >> My questions are
> >> + Are data at after render phase final?
> >> I mean does T5 inject more data after that?
> >> + If I want to get response data of many pages how do I do that in one
> >> place.
> >> Decorate or contribute after render phase for example?
> >> + I has followed request-response processing.
> >> http://uli.spielviel.de/~uli/tapestry_request_processing.png
> >> tapestry_request_processing
> >> But find no way to achieve this.
> >>
> >> How about your idea?
> >> Thank in advance,
> >> Van
> >
> > ---------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html
> Sent from the Tapestry - User 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
>
>


Re: [T5] Get Response data

2009-10-19 Thread iapilgrim

No matter what cache strategy is, I want to get entirely response data. 
How to get  entirely response data is my question ?
Anyone can help?


Martin Strand-4 wrote:
> 
> Not really answering your question but if you want to cache entire pages I
> would recommend using a caching proxy such as squid or varnish.
> Of course it depends on your specific use case...
> 
> 
> On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim  wrote:
> 
> 
>>
>> Hi all,
>> I'm using T5.1.0.5. My goal is to get page response data and cache it for
>> future use.
>> One way to achieve that is in after render phase or clean up render
>> phase.
>> My questions are
>> + Are data at after render phase final?
>> I mean does T5 inject more data after that?
>> + If I want to get response data of many pages how do I do that in one
>> place.
>> Decorate or contribute after render phase for example?
>> + I has followed request-response processing.
>> http://uli.spielviel.de/~uli/tapestry_request_processing.png
>> tapestry_request_processing
>> But find no way to achieve this.
>>
>> How about your idea?
>> Thank in advance,
>> Van
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html
Sent from the Tapestry - User 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



Re: [T5] Get Response data

2009-10-14 Thread Martin Strand

Not really answering your question but if you want to cache entire pages I 
would recommend using a caching proxy such as squid or varnish.
Of course it depends on your specific use case...


On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim  wrote:



Hi all,
I'm using T5.1.0.5. My goal is to get page response data and cache it for
future use.
One way to achieve that is in after render phase or clean up render phase.
My questions are
+ Are data at after render phase final?
I mean does T5 inject more data after that?
+ If I want to get response data of many pages how do I do that in one
place.
Decorate or contribute after render phase for example?
+ I has followed request-response processing.
http://uli.spielviel.de/~uli/tapestry_request_processing.png
tapestry_request_processing
But find no way to achieve this.

How about your idea?
Thank in advance,
Van


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



[T5] Get Response data

2009-10-14 Thread iapilgrim

Hi all,
I'm using T5.1.0.5. My goal is to get page response data and cache it for
future use.
One way to achieve that is in after render phase or clean up render phase.
My questions are
+ Are data at after render phase final?
I mean does T5 inject more data after that?
+ If I want to get response data of many pages how do I do that in one
place.
Decorate or contribute after render phase for example?
+ I has followed request-response processing. 
http://uli.spielviel.de/~uli/tapestry_request_processing.png
tapestry_request_processing 
But find no way to achieve this.

How about your idea?
Thank in advance,
Van

-- 
View this message in context: 
http://www.nabble.com/-T5--Get-Response-data-tp25902064p25902064.html
Sent from the Tapestry - User 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