Having a bean makes things explicit. Getting stuff from a text component directly is very read unfriendly. See it as a small investment in maintenance. You will thank yourself later for taking the 1 minute to generate the bean :-) But it is all a matter of taste and one can argue about that for ages. Whatever gets the job done and is maintainable in 2 years from now is the winner imo. What that means for you, that is for you to decide :)
Martijn On 1/21/08, Sergey Podatelev <[EMAIL PROTECTED]> wrote: > > On Jan 20, 2008 8:14 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > personally i would map the form to a bean, and then in onsubmit() > > transfer those properties to an instance of your domain object. > > > > > Igor, could you please tell in short how is this better than just get data > form the models of each component in onsubmit()? > I'm doing same thing within my app and was wondering if I should create a > bean just for form data extraction purposes. > > -- > sp > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
