Package org.jmanage.webui.dashboard.framework

Examples of org.jmanage.webui.dashboard.framework.DashboardRepository


                                 ActionMapping mapping,
                                 ActionForm actionForm,
                                 HttpServletRequest request,
                                 HttpServletResponse response)
            throws Exception {
        DashboardRepository instance = DashboardRepository.getInstance();
        ApplicationConfig appConfig = context.getApplicationConfig();
        String currentDashboardId = request.getParameter("dashBID");
        DashboardConfig currentDashboardConfig = null;
        for(String dashboardId : appConfig.getDashboards()){
            if(currentDashboardId.equals(dashboardId)){
                currentDashboardConfig = instance.get(dashboardId);
                break;
            }
        }
        if(currentDashboardConfig == null)
            currentDashboardConfig = instance.get(currentDashboardId);
        request.setAttribute("dashboardPage", currentDashboardConfig.getTemplate());
       
        /*set current page for navigation*/
        request.setAttribute(RequestAttributes.NAV_CURRENT_PAGE, currentDashboardConfig.getName());
       
View Full Code Here

TOP

Related Classes of org.jmanage.webui.dashboard.framework.DashboardRepository

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.