thank you very much... g, kris
Shing Hing Man <[EMAIL PROTECTED] > An Tapestry users 19.02.2007 11:42 <users@tapestry.apache.org> Kopie Bitte antworten Thema an Re: Creating AbstractComponent "Tapestry users" with .script <[EMAIL PROTECTED] pache.org> Try to put something like the following at end of your rendercomponent method. PageRenderSupport pageRenderSupport = TapestryUtils .getPageRenderSupport(cycle, this); Map symbols = new HashMap(); symbols.put("colorPicker", this); _script.execute(cycle, pageRenderSupport, symbols); Shing --- Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > > Hi all, > > maybe a dumb question... but how do i force > an AbstractComponent to render the injected > script? > > I could not figure out how to obtain the instances > required to call getScript.execute(..objects?..). > > > this is what i have so far: > @InjectScript("CompWithScript.script") > public abstract IScript getScript(); > > @Override > protected void renderComponent(IMarkupWriter writer, > IRequestCycle cycle) { > writer.begin("div"); > // stuff > writer.end(); > > // produces NPE > //getScript().execute(this, cycle, new > DefaultResponseBuilder(writer), > java.util.Collections.EMPTY_MAP); > } > > g, > kris > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Home page : http://uk.geocities.com/matmsh/index.html ___________________________________________________________ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]