Hi wicketers,
I use Wicket since 2 weeks. Before wicket i have worked on many projects
(Swing or Web apps) and try to find the best "architecture".
Now i'm learning Wicket and i have a big problem. I dont'like Data
Transferts Objects.
Many forms use more than one Bean, so i have asked you in a "Getting
Started" mail on how to do that properly.
"James Perry" give me this response :
...
To answer your third qestion on how to bind more then one domain model
to a form, I would recommend using the Data Transfer Object which has
associations to the domain models you are binding. Then use a
CompoundPropertyModel
to access the associatios.
...
Thank you James. But i don't like the the idea to Create a
DataTransfertObject and give it to a new CompoundPropertyModel. I think
the DTO is like a Model. So i need to create only one Model that
contains all required beans and extends or implements a Model.
What kind of model can i use for doing that in the better and the
cleaner way ?
Thank you