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