Oct 30th, 2008, 05:42 PM
where do you put your backing beans?
for most forms i plan on using single domain objects as backing beans (command beans) per form. but for one form i was going to need to have a form bind to two of my domain objects, so i am creating a backing bean that holds references to two domain objects, like is explained here: http://forum.springframework.org/sho...t=commandNames
where is the common place to store backing beans that you create? should i make afolder in controller/form/backingBeans? or put it in domain/backingBeans?
Nov 3rd, 2008, 01:57 AM
Nov 3rd, 2008, 11:35 AM
Whenever I use a non-domain class as a command, I create a class in the same package as my controller, bearing a name that starts with the same word(s), and then ending with "Form".
Nov 3rd, 2008, 12:45 PM
Any Command is use is in the web.command package