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]