Yay! :D

On Thu, Mar 1, 2012 at 1:47 AM, Richard Kennard <richard@kennardconsulting.com> wrote:
Worked for me too. Thanks!

On 1/03/2012 8:48 AM, Thomas Frühbeck wrote:
> 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
> _______________________________________________
> forge-dev mailing list
> forge-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
>
>

_______________________________________________
forge-dev mailing list
forge-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev



--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"