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