2005 IR Help Posted September 3, 2006 Share Posted September 3, 2006 By: macoute3 - macoute3 my parameter is a new instance of an object 2005-12-09 01:42 in a template, I use a parameter with a custom type: com. .... .myengine.TemplateResolver. As follow, the definition of TemplateResolver: public interface TemplateResolver { public InputStream get(String compiledTemplateName) throws Exception; } And the implementation: public class ClientTemplateResolver implements TemplateResolver { public InputStream get(String compiledTemplateName) throws Exception { nputStream inputStream = new FileInputStream("/workspace/reports/" + compiledTemplateName + ".jasper"); return inputStream; } } If, I put the default value to: new com. .... .myengine.ClientTemplateResolver(), this works fine, but if I prompt an other value (with no default value), the TemplateResolver seems to be not instanciate. why? Thanks for your response. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now