-
Oct 30th, 2008, 05:42 PM
#1
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
#2
-
Nov 3rd, 2008, 11:35 AM
#3
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".
e.g.
FunnyForm.java
FunnyFormController.java
-
Nov 3rd, 2008, 12:45 PM
#4
Any Command is use is in the web.command package
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules