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.ComponentEventResultProcessor,
net.yoyodyne.components.base.ClientSchemas.
        at
org.apache.tapestry5.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:79)
        at $Environment_12f74a6bf18.peekRequired($Environment_12f74a6bf18.java)
        at $Environment_12f74a6bd75.peekRequired($Environment_12f74a6bd75.java)
        at $RenderSupport_12f74a6bf24._delegate($RenderSupport_12f74a6bf24.java)
        at $RenderSupport_12f74a6bf24.addInit($RenderSupport_12f74a6bf24.java)
        at $RenderSupport_12f74a6bde5.addInit($RenderSupport_12f74a6bde5.java)
        at 
net.yoyodyne.components.SliderChart$ExtentsTask.reallyRun(SliderChart.java:77)

I've seen one post suggesting returning a Renderable from an action handler.  
This however
is far outside how our current framework works (we have an XHR service which 
processes a
list of tasks that generate MultiZoneUpdates, and handles execution and 
shifting tasks out
of the ongoing process list).

The current view from hell is that we'll be shortly making a JavaScriptInit 
component that
will be embedded on the component and will introduce a script tag with js code 
inside to
perform the init.  There's revulsion and horror shared in different measure 
amongst the
team, and I'm really hoping someone here can provide a clean way of using 
renderSupport, or
some clean XHR parallel means for injecting script initialization into the 
MultiZoneUpdate 
that's being built & sent out.

Regards,
rektide

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

Reply via email to