[forge-dev] POH5 runtime generation
Thomas Frühbeck
fruehbeck at aon.at
Wed Feb 29 16:48:10 EST 2012
Hello Lincoln,
you were absolutely right! That did it!!
String template =
Streams.toString(this.backingBeanTemplate.getSourceTemplateResource().getInputStream());
@Richard: I think you will need this too.
Perfect, yes I read about how important it is to keep an API clean but I
never felt the pains that hard :-)
Many thanks,
Thomas
Am 29.02.2012 20:13, schrieb Lincoln Baxter, III:
> Just FYI. If I am not mistaken, you are probably attempting to access
> the MVEL CompiledTemplate in order to access the textual
> representation of the template itself?
>
> If that is the case, what you should do instead is:
>
> InputStream templateStream =
> template.getSourceTemplateResource().getInputStream();
> String templateContents = Streams.toString(templateStream);
>
> I know this is somewhat more verbose, but it will work, and does not
> access implementation details of Seam Render (which are, I might add,
> my mistake for revealing in the API.)
>
> I hope this helps,
> ~Lincoln
More information about the forge-dev
mailing list