Re: RenderSupport in XHR

2011-04-21 Thread rektide
This worked! Huzzah! Thanks! On Thu, Apr 21, 2011 at 02:37:23PM +0200, Joakim Olsson wrote: > You can use a PartialMarkupRendererFilter to get access to > RenderSupport (I used it to get access to JavaScriptSupport in Tap > 5.2.4 at least). > > See this thread for how I used it: > http://tapestr

Re: RenderSupport in XHR

2011-04-21 Thread rektide
On Thu, Apr 21, 2011 at 06:22:02AM +0530, Taha Hafeez wrote: > Hi > > What Tapestry version are you using ? T5.1.0.6 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tap

Re: RenderSupport in XHR

2011-04-21 Thread Joakim Olsson
You can use a PartialMarkupRendererFilter to get access to RenderSupport (I used it to get access to JavaScriptSupport in Tap 5.2.4 at least). See this thread for how I used it: http://tapestry.1045711.n5.nabble.com/Focus-on-first-field-in-added-row-in-AjaxFormLoop-td3401558.html /Joakim On Wed

Re: RenderSupport in XHR

2011-04-20 Thread Taha Hafeez
Hi What Tapestry version are you using ? regards Taha On Thu, Apr 21, 2011 at 2:54 AM, rektide wrote: > Hi all, > > Doing some XHR code. Normally I'd call RenderSupport's addInit method in > my code. Here's > what I get: > > Caused by: java.lang.RuntimeException: No object of type > org.apac

RenderSupport in XHR

2011-04-20 Thread rektide
Hi all, Doing some XHR code. Normally I'd call RenderSupport's addInit method in my code. Here's what I get: Caused by: java.lang.RuntimeException: No object of type org.apache.tapestry5.RenderSupport is available from the Environment. Available types are org.apache.tapestry5.services.Compon

Re: T5: RenderSupport in XHR requests

2008-09-03 Thread Josh Canfield
If you have a form in the block that is being rendered then I've used the PREPARE_FOR_RENDER event from the form to inject scripts. Subcomponents get their render methods called during a partial render, I'm not sure why the targeted component's render methods are not called. On Tue, Sep 2, 2008

Re: T5: RenderSupport in XHR requests

2008-09-02 Thread Howard Lewis Ship
It would be tricky for some technical reasons. You can return a new Renderable object that will act as a callback from inside the partial rendering pipeline; inside the render() method, the environment (including RenderSupport) will be properly setup: i.e. Object onActionFromFoo() { return new

Re: T5: RenderSupport in XHR requests

2008-09-02 Thread Chris Lewis
Thanks Howard. Is the availability of RenderSupport within component event handlers a candidate for a new feature? Without such support I'm not sure how an app can return JS code to be executed to the client as the result of an action (ie a fired component event). chris Howard Lewis Ship wrote: >

Re: T5: RenderSupport in XHR requests

2008-09-02 Thread Howard Lewis Ship
It may not work from an event handler method, as its wired into place for the partial page render. On Tue, Sep 2, 2008 at 7:41 AM, Chris Lewis <[EMAIL PROTECTED]> wrote: > Hello, > > I was under the impression that the use of RenderSupport to add > javascript to an AJAX response was supported, and

T5: RenderSupport in XHR requests

2008-09-02 Thread Chris Lewis
Hello, I was under the impression that the use of RenderSupport to add javascript to an AJAX response was supported, and that scripts added in such a context via addScript would be executed automatically via tapestry.js when the response is received. Isn't that how it should work? I'm using a for