According to the JavaDocs, getService() in IEngine has been deprecated,
and the docs says that engine services are to be injected. So I thought
I would try this with the Chart service.
I have injected the service into the ChartAsset class (extends
AbstractAsset)
@InjectState("chart")
public abstract ChartService getChartService();
Inside my page I have method to get access to the asset with:
public IAsset getChartImageAsset(){
return new ChartAsset(getRequestCycle(), this);
}
Of course this is causing compile time errors, since I had to make
ChartAsset an abstract class to inject the state and you can't
instantiate abstrat classes. Am I doing the injection wrong??? Any
ideas???
scott.
--
Scott F. Walter Scott F. Walter
Principal Consultant
Vivare, Inc.
E: [EMAIL PROTECTED]
E: [EMAIL PROTECTED]
Visit scottwalter.com <http://scottwalter.com> --Point. Click. Explore!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]