Re: Reusing tapestry hibernate session in a thread

2012-02-26 Thread Paul Stanton
Hi Greg, The following seems to work, although I'm not entirely sure if it should !! If the tapestry IOC geniuses agree, it is quite elegant and you can @Inject Session within your DaoImpl. Basically, injecting the PerthreadManager allows you to tell tapestry-ioc that your thread is complete

Re: OLark script block

2012-02-26 Thread harry
Iprimak, It worked like a charm! Thank you. So it turns out using the JavaScriptSupport @Environmental and a call to its addScript in the layout page's afterRender does the trick. Wonder why that's the case. -- View this message in context: http://tapestry.1045711.n5.nabble.com/OLark-script-b

Re: Is it possible to use Zone with Radio Group to trigger an onValueChangedFrom?

2012-02-26 Thread George Ludwig
I spent a couple of hours on this today, and learned that my understanding of Tapestry is not yet deep enough for me to make this work. Has anyone else done something similar? Code examples? I've searched, and haven't been able to find anything that makes sense to me. On Sat, Feb 25, 2012 at 1:10

Re: OLark script block

2012-02-26 Thread Lenny Primak
You might need to add the script to the DOM in your afterRender() for layout component http://tapestry.apache.org/dom.html , or if that doesn't help, you might need to take MarkupRenderFilter approach, http://tapestry.apache.org/meta-programming-page-content.html On Feb 26, 2012, at 6:10 PM, ha

OLark script block

2012-02-26 Thread harry
Hi everyone! My first Tapestry site is about to go live. Very exciting time. In fact, I was so excited that I decided to add olark live chat. And it didn't work -- the "chat now" hover window never appeared. olark installment requires a script block: to be placed "right before the last tag

Re: Caching page results ...

2012-02-26 Thread Gunnar Eketrapp
Ok here is my solution ... In my app module I added .. public void contributeComponentEventResultProcessor(final Response response, MappedConfiguration, ComponentEventResultProcessor> configuration) { configuration.add(HttpErrorNotModified.class, new ComponentEventResultProcessor() { public void

Re: T5: @Property(create=true) ?

2012-02-26 Thread Muhammad Gelbana
I realize this is a very old thread but I'm facing something similar and would like to point out that one may need to go deep into an object graph. For example Adam is asking if tapestry can auto create the "address" object for him, but what if the address object has other objects that needs to be

Re: Caching page results ...

2012-02-26 Thread Gunnar Eketrapp
I just saw that ResourceStreamerImpl.java checks modification time and does ... response.sendError(HttpServletResponse.SC_NOT_MODIFIED, ""); Is there a way for me to achieve the same from my onActivate() method below ... I.e. how do I return a 304 when my image hasn't been changed according t