<div dir="ltr"><div><div><div>Hey Robb,<br><br></div>This is awesome! I think very valuable as well. To start adding annotations, take a look at how the FieldPlugin (JPA Specific) does it - <a href="https://github.com/forge/core/blob/master/javaee-impl/src/main/java/org/jboss/forge/spec/javaee/jpa/FieldPlugin.java#L433">https://github.com/forge/core/blob/master/javaee-impl/src/main/java/org/jboss/forge/spec/javaee/jpa/FieldPlugin.java#L433</a><br>
<br></div>That should give you almost everything you need. You&#39;ll want to make sure you use the Forge Resource API to do your work (don&#39;t use regular File() objects.)<br><br></div>Anything else you need?<br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 21, 2012 at 1:38 PM, Robb Greathouse <span dir="ltr">&lt;<a href="mailto:robb.greathouse@jboss.com" target="_blank">robb.greathouse@jboss.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I have been working on something with Forge to build out projects really quickly.  I do it with cut and pastes now.  But is so simple, it should be possible to write a plugin to do this. I take the views that are automatically generated by the Forge and cut and paste them together.<br>

<br>
What I wanted to do was a plugin that would take the views created by the forge (create.xhtml, search.xhtml, view.xhtml) and build them into another view.  Example taking a customer.xhtml and creditCard.xhtml and combining them to be a customerRegistration.xhtml.  Really easy with the forge frame work.  Just requires adding a cascade and fetch to the @ManyToOne annotation.<br>

<br>
Really simple.<br>
<br>
Then wanted to try something more complicated like a Booking (from TicketMonster) by combining more and creating a backing bean by injecting other backing beans into it.<br>
<br>
While the UI will not be pretty; but IMHO it creates a solid starting point really fast, that can be easily beautified later.  Just doing it cut and paste really speeds up development.<br>
<br>
<br>
Robb Greathouse<br>
Partner Enablement<br>
Middleware Business Unit<br>
JBoss, a Division of Red Hat<br>
cellphone <a href="tel:505-507-4906" value="+15055074906">505-507-4906</a><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>
</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>