Hey Thomas,<br><br>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?<br><br>If that is the case, what you should do instead is:<br>
<br>InputStream templateStream = 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 access implementation details of Seam Render (which are, I might add, my mistake for revealing in the API.)<br>
<br>I hope this helps,<br>~Lincoln<br><br><div class="gmail_quote">On Tue, Feb 28, 2012 at 6:08 PM, Thomas Frühbeck <span dir="ltr">&lt;<a href="mailto:fruehbeck@aon.at">fruehbeck@aon.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m not absolutely sure, but it seems your are going to end up at the<br>
same point where I am now.<br>
See   <a href="http://lists.jboss.org/pipermail/forge-dev/2012-February/001572.html" target="_blank">http://lists.jboss.org/pipermail/forge-dev/2012-February/001572.html</a><br>
<br>
I took the code from the faces scaffold and wanted to extend it in a<br>
separate plugin.<br>
What I see is that the tests work fine but at runtime different<br>
classloader restrictions apply.<br>
<br>
I think Lincoln is right<br>
Am <a href="tel:27.02.2012%2017" value="+12702201217">27.02.2012 17</a>:01, schrieb Lincoln Baxter, III:<br>
&gt; Actually I think that perhaps the best solution is actuallly just to<br>
&gt; expose MVEL as a dependency to plugins that request it. This would be<br>
&gt; the simplest solution IMO, and would only request code-changes in the<br>
&gt; Forge plugin installer:<br>
<br>
Perhaps it makes sense to get this fixed before &quot;repairing&quot; a working<br>
plugin?<br>
<br>
Thomas<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>
</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>