Package com.adito.core.forms

Examples of com.adito.core.forms.AbstractMultiFormDispatchForm


    protected ActionForward dispatchMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                                           HttpServletResponse response, String name) throws Exception {
        Collection<Panel> panels = PanelManager.getInstance().getPanels(placement_, request, response, DefaultPanel.MAIN_LAYOUT);
        Collection<SubActionWrapper> subActions = getSubActions(mapping, form, request, panels);

        AbstractMultiFormDispatchForm dispatchForm = (AbstractMultiFormDispatchForm) form;
        dispatchForm.init(subActions, mapping, request);
       
        ActionForward fwd = provideActionTargets(subActions, dispatchForm, request, response, name);
        if(fwd != null) {
            return fwd;
        }
View Full Code Here


         * We dont want to try and populate all forms on a post, only the one
         * that has requested it. For this the form must have a hidden parameter
         * with the name of 'subForm' and the value being the form name to
         * populate
         */
        AbstractMultiFormDispatchForm dispatchForm = (AbstractMultiFormDispatchForm) form;
        if (formName.equals(dispatchForm.getSubForm())) {
            dispatchForm.setSelectedTab(dispatchForm.getTabName(index));
            BeanUtils.populate(subForm, request.getParameterMap());
        }

        return new SubActionWrapper(subForm, subMapping);
    }
View Full Code Here

TOP

Related Classes of com.adito.core.forms.AbstractMultiFormDispatchForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.