• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Advantages of Dyna Forms

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are there any advantages to using the Dynammically created Form Beans other than not having to write all those getter and setter methods? I like them, I am just curious as to other key benefits.
Thanks.
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use them if I think the properties of the bean are likely to change. It doesn't require a recompile to make changes to the properties.
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One of the nice things about them is that for people who are not all that familiar with Struts, it may be a bit easier to define your beans via XML. I have found this to be the case when working on development teams with folks who are just beginning to get a grasp on Struts.
Another benefit is that the class DynamicActionForm implements org.apache.commons.beanutils.DynaBean, allowing the developer quick use to the Jakarta Commons Bean Introspection Utilities libraries. This allows the developer to easily write generic ways of handling their form beans, regardless of what the bean's properties are. It's funny you bring this up because as we speak I'm staring at a blank Word document, getting ready to write an article on this library.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jason Menard:
It's funny you bring this up because as we speak I'm staring at a blank Word document, getting ready to write an article on this library.


If the article is not for the Newsletter, can you pass it on to me when you complete it. I would like to read it.
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gregg Bolinger:
If the article is not for the Newsletter, can you pass it on to me when you complete it. I would like to read it.


It would be nice if I get it done in time for the Newsletter, but in any case I will let you take a look at it when I'm done. (if I was unclear btw, I'm talking about an article on the Commons BeanUtil library, not DynaForms)
 
Space pants. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic