Confusion about tapestry singleton page

2012-06-04 Thread xieweiguo
Hello! I heard that from tapepstry 5.2,all page is singleton-object.But,I write some code in the constructor of page class like this: //the constructor public TestPage() { System.out.println("=+++ constructor run "); } The code will run more than once. So,my

How to render component(zone,block) widthout request and response

2012-05-16 Thread xieweiguo
Hello everybody! I am using tapestry for a comet app.now I have got a question:How to render component(zone,block) widthout request and response? When some event has bean fired from server(for example:somebody get online),the server need to render some html and push it to all the people who are onl

Re: tapestry-push - proof of concept

2012-05-15 Thread xieweiguo
Yes ,that's the real question.the block/zone/component dependents on the environment (page or parent component ),so we can't just render it like call a function -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-push-proof-of-concept-tp5697644p5710470.html Sent from t

Re: tapestry-push - proof of concept

2012-05-15 Thread xieweiguo
Yes , you are right ,maybe using ComponentEventRequestHandler is the best way now . But I wish that the next version of tapestry will provide some service to render html more easily.^_^ The AjaxComponentEventRequestHandler is the key of partial-rendering , maybe I should spend much more time to

Re: tapestry-push - proof of concept

2012-05-14 Thread xieweiguo
Yes,I believe if we use the tapestry's existing event processing chain,we will get the rendered html we want. The question is:in the back of tapestry's existing event processing chain,tapestry use PageRenderQueue(or something else) and RenderCommand to render blocks/zones/components. So , why don't

Re: How to render component(zone,block) widthout request and response

2012-05-14 Thread xieweiguo
Thank you for your encouragement.I will post my code when i finished . ^_^ -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-render-component-zone-block-widthout-request-and-response-tp5708658p5708920.html Sent from the Tapestry - User mailing list archive at Nabble.co

Re: tapestry-push - proof of concept

2012-05-14 Thread xieweiguo
How about just render a block(or zone,component,etc) in a non-web-thead ? Think about this:no event on the component will be execute,the non-web-thread just prepare PageRenderQueue (or something else,I'm not sure),RenderCommand and render the html of the block.and then,the non-web-thread push the

Re: How to render component(zone,block) widthout request and response

2012-05-14 Thread xieweiguo
Thank you ! That's a way to solve my problem... By the way,where are you from ?I am from china,and it's difficult to communicate width each other for my poor English. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-render-component-zone-block-widthout-request-and-res