Hi Max,<br><br>thank you for the feedback.<br>It does not have to be an @Entity bean, you can use a simple POJO as well for your form generation.<br><br>Tomas<br><br><div class="gmail_quote">On Wed, Mar 12, 2008 at 6:41 AM, Max Rydahl Andersen &lt;<a href="mailto:max.andersen@redhat.com">max.andersen@redhat.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Tomas,<br>
<br>
Just wanted to say I like this idea as oppose to code generate the view.<br>
<br>
Does the beans you provide forms for have to be @Entity&#39;ies ?<br>
Could I use a normal pojo ?<br>
<br>
/max<br>
<div><div></div><div class="Wj3C7c"><br>
&gt; Hi, Tomas, fwding to seam-dev list.<br>
&gt;<br>
&gt; Perhaps you would also like to share this work in the user forum?<br>
&gt;<br>
&gt; On Sat, Mar 8, 2008 at 7:02 AM, Tomas Cerny &lt;<a href="mailto:tom.cerny@gmail.com">tom.cerny@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Dear Gavin King,<br>
&gt;&gt;<br>
&gt;&gt; I have developed a new tool for view form generation from entity beans that<br>
&gt;&gt; I think would be very useful for Seam developers. &nbsp;I would like to get your<br>
&gt;&gt; feedback on the tool and ideas if you have time. &nbsp;If you like my tool, I<br>
&gt;&gt; would like to discuss how we can best provide it to the Seam community.<br>
&gt;&gt; Here are details...<br>
&gt;&gt;<br>
&gt;&gt; I am a graduate student and ICPC frontend developer working on application<br>
&gt;&gt; that is build on JSF, facelets, Hibernate, Spring and Acegi.<br>
&gt;&gt; My research is in the next generation web application frameworks for the<br>
&gt;&gt; next generation of our application.<br>
&gt;&gt;<br>
&gt;&gt; Seam is great framework, and I love developing with it. &nbsp;I started with<br>
&gt;&gt; seam-gen and am continuing with manual development.<br>
&gt;&gt; It is great for generation of a starter application, but its customization<br>
&gt;&gt; abilities are limited. &nbsp;If I try to customize code generated by seam-gen, I<br>
&gt;&gt; can no longer regenerate.<br>
&gt;&gt; &nbsp;Another problem that I had with seam-gen is that it generates forms with<br>
&gt;&gt; basic input components and does not offer any customization. &nbsp;For example,<br>
&gt;&gt; for properties of an enumerate type, seam-gen&#39;s form field is an input text<br>
&gt;&gt; field; however, what I want is a drop-down list of the enumerated type<br>
&gt;&gt; values.<br>
&gt;&gt;<br>
&gt;&gt; To address these problems, I have developed a tool called FormBuilder that<br>
&gt;&gt; can fully generate view forms from entity beans and offers complete<br>
&gt;&gt; customization of input fields. My tool uses Hibernate-Validation<br>
&gt;&gt; (annotations). Developers can even define their own input components for<br>
&gt;&gt; form generation. &nbsp;When the input components are wrapped as facelet tag, it<br>
&gt;&gt; can offer even more!<br>
&gt;&gt;<br>
&gt;&gt; Some features:<br>
&gt;&gt;<br>
&gt;&gt; The tool is completely configurable using annotations and XML.<br>
&gt;&gt; Each generated form can function in either read-only or editable model,<br>
&gt;&gt; depending on the &quot;editable&quot; attribute.<br>
&gt;&gt;<br>
&gt;&gt; The form uses configuration-by-exception for its field rendering for<br>
&gt;&gt; security<br>
&gt;&gt; Forms may be referenced by Facelets tags to decrease application coupling.<br>
&gt;&gt; Tool forces good practice for code management (different users same style)<br>
&gt;&gt; Entity field property propagation to the form allows client-side validation<br>
&gt;&gt; I provide two tag libraries with client-side validation and new input<br>
&gt;&gt; component types like Password, Link, Html, ColorPicker. (The first library<br>
&gt;&gt; is Seam+RichFaces, and the second library is simple JSF.)<br>
&gt;&gt; I also created new field annotations like (password, link, html,<br>
&gt;&gt; javaScriptPattern, formOrder) for complete form generation.<br>
&gt;&gt; Form creation and maintenance is completely handled by the tool. &nbsp;After<br>
&gt;&gt; entity bean updates, &quot;fresh&quot; forms are autogenerated to match.<br>
&gt;&gt; &nbsp;More information is available here:<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://cs.ecs.baylor.edu/%7Ecerny/formBuilder/guide.html" target="_blank">http://cs.ecs.baylor.edu/~cerny/formBuilder/guide.html</a><br>
&gt;&gt;<br>
&gt;&gt; I have also built an example application showing new components and client<br>
&gt;&gt; side validation (tested on 5 main browsers!)<br>
&gt;&gt; &nbsp;It offers also comparison to forms generated by seam-gen.<br>
&gt;&gt;<br>
&gt;&gt; You can experiment with the application by going to<br>
&gt;&gt; <a href="http://fire.ecs.baylor.edu:8080/FormBuilderExample/home.seam" target="_blank">http://fire.ecs.baylor.edu:8080/FormBuilderExample/home.seam</a> (not<br>
&gt;&gt; official/private)<br>
&gt;&gt;<br>
&gt;&gt; Currently, you can download FormBuilder from<br>
&gt;&gt; <a href="http://cs.ecs.baylor.edu/%7Ecerny/formBuilder/download" target="_blank">http://cs.ecs.baylor.edu/~cerny/formBuilder/download</a>. &nbsp;Later I am planning<br>
&gt;&gt; to put it on SourceForge.net.<br>
&gt;&gt;<br>
&gt;&gt; I welcome any feedback (even bad) on this work.<br>
&gt;&gt;<br>
&gt;&gt; Tomas<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
</div></div>Using Opera&#39;s revolutionary e-mail client: <a href="http://www.opera.com/mail/" target="_blank">http://www.opera.com/mail/</a><br>
</blockquote></div><br>