Examples of URLMarkupGenerator


Examples of org.jboss.dashboard.ui.components.URLMarkupGenerator

            NavigationManager navigationManager = NavigationManager.lookup();
            panel = navigationManager.getCurrentSection().getPanel(this.panel);
        } else {
            panel = (Panel) pageContext.getRequest().getAttribute(Parameters.RENDER_PANEL);
        }
        URLMarkupGenerator markupGenerator = UIServices.lookup().getUrlMarkupGenerator();
        String linkStr = markupGenerator.getLinkToPanelAction(panel, getAction(), params, Boolean.valueOf(useFriendlyUrl).booleanValue());
        try {
            pageContext.getOut().print(linkStr);
        } catch (java.io.IOException ex) {
            log.error(ex);
        }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.URLMarkupGenerator

     * @param extraParams
     * @return
     * @deprecated. Use URLMarkupGenerator directly
     */
    public static String getLink(HttpServletRequest request, HttpServletResponse response, Panel panel, String action, String extraParams) {
        URLMarkupGenerator markupGenerator = UIServices.lookup().getUrlMarkupGenerator();
        String linkStr = markupGenerator.getLinkToPanelAction(panel, action, extraParams, true);
        return linkStr;
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.URLMarkupGenerator

        paramsMap.clear();
        return EVAL_BODY_INCLUDE;
    }

    public int doEndTag() throws JspException {
        URLMarkupGenerator urlMarkupGenerator = UIServices.lookup().getUrlMarkupGenerator();
        String markup = friendly ? urlMarkupGenerator.getMarkup(getBean(), getAction(), paramsMap) : urlMarkupGenerator.getPermanentLink(getBean(), getAction(), paramsMap) ;
        try {
            pageContext.getOut().print(markup);
        } catch (java.io.IOException ex) {
            log.error("Error: ", ex);
        }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.URLMarkupGenerator

                ControllerServletHelper.lookup().initThreadLocal(wrap, getResponse());
            }
            catch (IOException ioe) {
                log.warn("IOException processing multipart ", ioe);
                log.warn("Invalid " + method + ": URL=" + getRequest().getRequestURL() + ". QueryString=" + getRequest().getQueryString());
                URLMarkupGenerator markupGenerator = UIServices.lookup().getUrlMarkupGenerator();
                if (markupGenerator != null) {
                    Map paramsMap = new HashMap();
                    paramsMap.put(RedirectionHandler.PARAM_PAGE_TO_REDIRECT, getErrorRedirectPage());
                    String uri = ContextTag.getContextPath(markupGenerator.getMarkup("org.jboss.dashboard.ui.components.RedirectionHandler", "redirectToSection", paramsMap), getRequest());
                    uri = StringEscapeUtils.unescapeHtml(uri);
                    getControllerStatus().setResponse(new RedirectToURLResponse(uri, !uri.startsWith(getRequest().getContextPath())));
                }
                return false;
            }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.URLMarkupGenerator

    public int doStartTag() throws JspException {
        return EVAL_BODY_INCLUDE;
    }

    public int doEndTag() throws JspException {
        URLMarkupGenerator urlMarkupGenerator = UIServices.lookup().getUrlMarkupGenerator();
        String markup = friendly ? urlMarkupGenerator.getBaseURI() : urlMarkupGenerator.getServletMapping();
        try {
            pageContext.getOut().print(markup);
        } catch (java.io.IOException ex) {
            log.error("Error: ", ex);
        }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.URLMarkupGenerator

        html.append(req.getContextPath()).append("/fckeditor/';\n" + "    var oFCKeditor = new FCKeditor('param_");
        html.append(getId()).append("', '100%', '150') ;\n"
                + "    oFCKeditor.BasePath = sBasePath;\n"
                + "    oFCKeditor.Config['CustomConfigurationsPath'] = '");

        URLMarkupGenerator markupGenerator = (URLMarkupGenerator) UIServices.lookup().getUrlMarkupGenerator();
        Map paramsMap = new HashMap();
        paramsMap.put(RedirectionHandler.PARAM_PAGE_TO_REDIRECT, "/fckeditor/custom/fckConfig.jsp");
        String uri = markupGenerator.getMarkup("org.jboss.dashboard.ui.components.RedirectionHandler", "redirectToSection", paramsMap);

        if (!uri.startsWith("/")) uri = "/" + uri;
        html.append(req.getContextPath()).append(uri).append("';"
                + "    oFCKeditor.Config[\"DefaultLanguage\"] = '").append(SessionManager.getLang()).append("';\n");
        html.append("    oFCKeditor.ReplaceTextarea();\n" + "</script>");
View Full Code Here

Examples of org.jboss.dashboard.ui.components.URLMarkupGenerator

        setAttribute("isAjax", isAjax);
        renderFragment("menuEntry" + (enabled ? "" : "Disabled"));
    }

    protected String getPanelActionLink(HttpServletRequest request, HttpServletResponse response, Panel panel, String action) {
        URLMarkupGenerator markupGenerator = UIServices.lookup().getUrlMarkupGenerator();
        return markupGenerator.getLinkToPanelAction(panel, action, true);
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.URLMarkupGenerator

        setAttribute("panelUID", HTTPSettings.AJAX_AREA_PREFFIX + "content_panel_" + panel.getPanelId());
        renderFragment("panelButton");
    }

    protected String getPanelActionLink(String action) {
        URLMarkupGenerator markupGenerator = UIServices.lookup().getUrlMarkupGenerator();
        return markupGenerator.getLinkToPanelAction(panel, action, false);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.