Yay! :D<br><br><div class="gmail_quote">On Thu, Mar 1, 2012 at 1:47 AM, Richard Kennard <span dir="ltr"><<a href="mailto:richard@kennardconsulting.com">richard@kennardconsulting.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Worked for me too. Thanks!<br>
<div class="HOEnZb"><div class="h5"><br>
On 1/03/2012 8:48 AM, Thomas Frühbeck wrote:<br>
> Hello Lincoln,<br>
><br>
> you were absolutely right! That did it!!<br>
><br>
> String template =<br>
> Streams.toString(this.backingBeanTemplate.getSourceTemplateResource().getInputStream());<br>
><br>
> @Richard: I think you will need this too.<br>
><br>
> Perfect, yes I read about how important it is to keep an API clean but I<br>
> never felt the pains that hard :-)<br>
><br>
> Many thanks,<br>
> Thomas<br>
><br>
> Am 29.02.2012 20:13, schrieb Lincoln Baxter, III:<br>
>> Just FYI. If I am not mistaken, you are probably attempting to access<br>
>> the MVEL CompiledTemplate in order to access the textual<br>
>> representation of the template itself?<br>
>><br>
>> If that is the case, what you should do instead is:<br>
>><br>
>> InputStream templateStream =<br>
>> template.getSourceTemplateResource().getInputStream();<br>
>> String templateContents = Streams.toString(templateStream);<br>
>><br>
>> I know this is somewhat more verbose, but it will work, and does not<br>
>> access implementation details of Seam Render (which are, I might add,<br>
>> my mistake for revealing in the API.)<br>
>><br>
>> I hope this helps,<br>
>> ~Lincoln<br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> forge-dev mailing list<br>
> <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
><br>
><br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>"Keep it Simple"<br>