Mario,<br><br>The bugs encountered here are known issues, but it sounds like you've found a solution. If you'd like to modify your local forge installation so that you can generate working scaffolding for the time being, I'd suggest editing the following JAR files (you'll have to modify the JAR contents.<br>
<br>$FORGE_HOME/lib/<b>forge-scaffold.jar</b>/org/jboss/seam/forge/jpa/PersistenceUtil.jv<br>
$FORGE_HOME/lib/<b>forge-scaffold.jar</b>/org/jboss/seam/forge/scaffold/templates/view.xhtml<br><br>Or, you can check out the Alpha3 branch of the code and build a new JAR locally with your changes:<br><br><a href="https://github.com/seam/forge/tree/1.0.0.Alpha3">https://github.com/seam/forge/tree/1.0.0.Alpha3</a><br>
<br>Also, if you are feeling generous, could you upload your modified, working files to the related issues? :) That would help us fix this for the next release!<br><br><a href="https://issues.jboss.org/browse/SEAMFORGE-47">https://issues.jboss.org/browse/SEAMFORGE-47</a><br>
<a href="https://issues.jboss.org/browse/SEAMFORGE-48">https://issues.jboss.org/browse/SEAMFORGE-48</a><br><br>Thanks very much!<br>~Lincoln<br><br><div class="gmail_quote">On Tue, Apr 12, 2011 at 5:48 PM, Mario Marques Junior <span dir="ltr"><<a href="mailto:mario@scale.com.br">mario@scale.com.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I used forge to create an entity in my project, and I have to do changes<br>
to work properly.<br>
<br>
In view.xhtml, I put the Save button inside <c:if test="rendered<br>
condition"> (removing the rendered condtion from the <h:commandButton>),<br>
also send parameter edit=false to the Cancel button.<br>
<br>
In PersistenceUtil.java, I put getEntityManager().joinTransaction(); on<br>
delete() and save().<br>
<br>
I want to know if I should add other configuration so that I can stick<br>
with the default code generated or if I have to do this changes for<br>
every scaffolding.<br>
<br>
Forge 1.0.0.Alpha3<br>
JBossAS 6<br>
Hibernate<br>
<br>
Thanks,<br>
<br>
Mario Marques Junior<br>
<br>
_______________________________________________<br>
forge-users mailing list<br>
<a href="mailto:forge-users@lists.jboss.org">forge-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</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>"Keep it Simple"<br>