I have a form that combines data from multiple pojo's. Currently I am creating two seperate IModels inside my form, something like this.

IModel model1 = new LoadableDetachableModel() {
 @Override
  protected Object load() { ... }
};

IModel model2 = new LoadableDetachableModel() {
 @Override
  protected Object load() { ... }
};

add(new TextField("foo", new PropertyModel(model1, "foo")));
add(new TextField("bar", new PropertyModel(model2, "bar")));


When the form is submitted, what's the best way to get the form components back into their respected object models?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to