Package com.adito.sample.forms

Examples of com.adito.sample.forms.SamplesForm


     *      javax.servlet.http.HttpServletResponse)
     */
    public ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                    HttpServletResponse response) throws Exception {
        ActionForward fwd = super.unspecified(mapping, form, request, response);
        SamplesForm samplesForm = (SamplesForm) form;

        // TODO get the samples and initialise the Form with the Items.

        List samples = getSessionInfo(request).getNavigationContext() == SessionInfo.MANAGEMENT_CONSOLE_CONTEXT ? ResourceUtil
                        .filterManageableResources(SamplePlugin.getDatabase().getSamples(), getSessionInfo(request).getUser())
                        : ResourceUtil.getGrantedResource(getSessionInfo(request), getResourceType());
        samplesForm.initialise(samples, getSessionInfo(request), ".name");

        return fwd;
    }
View Full Code Here

TOP

Related Classes of com.adito.sample.forms.SamplesForm

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.