I have this code to implement ModelDriven
mechanism.
public class Input_newAction extends CommonAction implements ModelDriven<InputForm> {
private InputForm form = new InputForm();
@Override
public InputForm getModel() {
return form;
}
}
The problem is I need to pass another form to Input_newAction
. How to do this?
public class Input_newAction extends CommonAction implements ModelDriven<InputForm>,
ModelDriven<CopyForm> {
...
}