You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2006/05/19 03:38:37 UTC

[Tapestry Wiki] Trivial Update of "BeanForm" by DanielGredler

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.

The following page has been changed by DanielGredler:
http://wiki.apache.org/tapestry/BeanForm

The comment on the change is:
add links and another gotcha

------------------------------------------------------------------------------
- An [http://howardlewisship.com/blog/2006/03/from-fanciful-ideas-category.html often-requested feature] is an easier, more Trails-like way of editing domain objects that gets rid of a lot of the boilerplate typing required to create an edit form. [http://planesailing.blogspot.com/2006/03/tapestry-edit-component.html Some solutions] are breathtaking in their comprehensiveness but suffer from lack of documentation and over-architecting (imho). The BeanForm is a simpler solution to this common problem:
+ An [http://howardlewisship.com/blog/2006/03/from-fanciful-ideas-category.html often-requested] [http://mail-archives.apache.org/mod_mbox/jakarta-tapestry-user/200505.mbox/%3c20050506152807.HZSH17140.mta10.adelphia.net@PCASEY%3e feature] is an easier, more ([https://trails.dev.java.net/ Trails]/[http://www.rubyonrails.org/ Rails]/[http://codehaus.org/display/GRAILS/Home Grails])-like way of editing domain objects that gets rid of a lot of the boilerplate typing required to create an edit form. [http://planesailing.blogspot.com/2006/03/tapestry-edit-component.html Some solutions] are breathtaking in their comprehensiveness but suffer from lack of documentation and over-architecting (imho). The BeanForm is a simpler solution to this common problem:
  
  {{{
  <span jwcid="@BeanForm" bean="ognl:pojo" save="listener:save" delete="listener:delete"/>
@@ -44, +44 @@

  Gotchas:
   * Change the package name in BeanForm.java!
   * Use your own logging framework in BeanForm.java!
+  * If you are using a page property (''pojo'' in all the examples above) for the BeanForm's ''bean'' parameter, you will probably need to make this page property persistent. Otherwise, your page will likely break during the rewind cycle.
  
  ==== BeanForm.html ====
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org