DelegatingForm
2930313233343536373839
{ ActionForm form = injectionContext.getForm(); if (form instanceof WrappingForm) { WrappingForm wrapper = (WrappingForm) form; return wrapper.getWrappedForm(); } return form; }
110111112113114115116117118119120121
Class getFormClass(Object form) { Class formClass; if (form instanceof WrappingForm) { WrappingForm w = (WrappingForm) form; formClass = w.getWrappedForm().getClass(); } else formClass = form.getClass(); return formClass; }
123124125126127128129130131132133134
Object getReadableObject(Object form) { Object formClass; if (form instanceof WrappingForm) { WrappingForm w = (WrappingForm) form; formClass = w.getWrappedForm(); } else formClass = form; return formClass; }
public ActionForm prePopulate(ActionForm form, HttpServletRequest request) { if (form instanceof WrappingForm) { WrappingForm wrapper = (WrappingForm) form; return wrapper.getWrappedForm(); } else return form; }