<div dir="ltr"><div>Well... it probably won&#39;t happen until we get Forge 2 out the door, sadly, unless someone out there has some time to contribute to make it happen. Forge 2 will make this much easier to do and hopefully we will re-design the whole scaffold architecture so that resources can be made available to metawidget from other addons more easily (actually this is already working as seen in the resource addon.)<br>
<br><a href="https://github.com/forge/core/blob/2.0/resource/api/src/main/java/org/jboss/forge/resource/ResourceFactory.java#L78">https://github.com/forge/core/blob/2.0/resource/api/src/main/java/org/jboss/forge/resource/ResourceFactory.java#L78</a><br>
<br></div>If we just want to be able to add template resources from disk, then that would be fine as well, but I&#39;d want to know what folks think is a reasonably friendly way of doing this for end users. I really don&#39;t know what would be good/acceptable.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 2, 2013 at 5:08 PM, Richard Kennard <span dir="ltr">&lt;<a href="mailto:richard@kennardconsulting.com" target="_blank">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">Ahmed,<br>
<br>
Yes - much of what you want to accomplish can be done by writing a custom WidgetBuilder (see <a href="http://metawidget.org/doc/reference/en/html/ch02s04.html#section-architecture-widgetbuilders-implementing-your-own" target="_blank">http://metawidget.org/doc/<u></u>reference/en/html/ch02s04.<u></u>html#section-architecture-<u></u>widgetbuilders-implementing-<u></u>your-own</a>) and then modifying metawidget-entity.xml to hook it in. You may also modify the /resources/scaffold/faces templates (create.xhtml, search.xhtml etc).<br>

<br>
The hard part is how to actually *get at* these files to modify them. This has been an outstanding issue for some time. Lincoln can we make a New Years resolution to get some movement on this? <a href="https://issues.jboss.org/browse/FORGEPLUGINS-68" target="_blank">https://issues.jboss.org/<u></u>browse/FORGEPLUGINS-68</a><br>

<br>
For now you probably need to repackage your own plugin.<br>
<br>
Regards,<br>
<br>
Richard.<div class="im"><br>
<br>
On 3/01/2013 8:05 AM, Lincoln Baxter, III wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hello Ahmed,<br>
<br>
Welcome to the list.<br>
<br>
At first glance, it seems that you should be able to do this relatively simply by modifying the metawidget XML configuration, and perhaps providing your own generation class, but I will need to defer you to Richard Kennard, the author of Metawidget, since he will know the answer (and hopefully be able to tell you how to proceed without too much trouble on his part.)<br>

<br>
I am not too knowledgeable about this part of Forge. I&#39;ve also copied a few people who might be able to give advice with their experience writing custom scaffolds.<br>
<br>
~Lincoln<br>
<br></div><div class="im">
On Wed, Jan 2, 2013 at 6:19 AM, Ahmed ELJABIRI &lt;<a href="mailto:a.eljabiri@gmail.com" target="_blank">a.eljabiri@gmail.com</a> &lt;mailto:<a href="mailto:a.eljabiri@gmail.com" target="_blank">a.eljabiri@gmail.com</a>&gt;&gt; wrote:<br>

<br>
    Ahmed<br>
<br>
<br>
<br>
<br>
-- <br>
Lincoln Baxter, III<br>
<a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
&quot;Simpler is better.&quot;<br>
</div></blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;
</div>