Examples of UIBeanHandler


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

    /**
     * @see javax.servlet.jsp.tagext.TagSupport
     */
    public int doEndTag() throws JspTagException {
        Panel panel = RequestContext.lookup().getActivePanel();
        UIBeanHandler uiBean = UIBeanLocator.lookup().getCurrentBean(pageContext.getRequest());
        String encodedName = encode(panel, uiBean, name);
        try {
            pageContext.getOut().print(encodedName);
        } catch (Exception e) {
            handleError(e);
View Full Code Here

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

        return sb.toString();
    }

    public String encodeFromContext(PageContext pageContext, String name) {
        Panel panel = RequestContext.lookup().getActivePanel();
        UIBeanHandler uiBean = UIBeanLocator.lookup().getCurrentBean(pageContext.getRequest());
        return encode(panel, uiBean, name);
    }
View Full Code Here

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

    /**
     * @see javax.servlet.jsp.tagext.TagSupport
     */
    public int doEndTag() throws JspTagException {
        UIBeanHandler uiBean = getBeanInstance();
        String page = uiBean.getBeanJSP();
        if (StringUtils.isBlank(page)) throw new RuntimeException("Page for bean " + getBeanName() + " is null.");

        CodeBlockTrace trace = new BeanHandler.HandlerTrace(uiBean, null).begin();
        Object previousComponent = pageContext.getRequest().getAttribute(CURRENT_BEAN);
        try {
            uiBean.beforeRenderBean();
            pageContext.getRequest().setAttribute(CURRENT_BEAN, uiBean);
            jspInclude(page);
            pageContext.getRequest().setAttribute(CURRENT_BEAN, previousComponent);
            uiBean.afterRenderBean();
        } catch (Exception e) {
            handleError(e);
        } finally {
            pageContext.getRequest().setAttribute(CURRENT_BEAN, previousComponent);
            trace.end();
View Full Code Here

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

    /**
     * @see javax.servlet.jsp.tagext.TagSupport
     */
    public int doEndTag() throws JspTagException {
        UIBeanHandler uiBean = getBeanInstance();
        String page = uiBean.getBeanJSP();
        if (StringUtils.isBlank(page)) throw new RuntimeException("Page for bean " + getBeanName() + " is null.");

        CodeBlockTrace trace = new BeanHandler.HandlerTrace(uiBean, null).begin();
        Object previousComponent = pageContext.getRequest().getAttribute(CURRENT_BEAN);
        try {
            uiBean.beforeRenderBean();
            pageContext.getRequest().setAttribute(CURRENT_BEAN, uiBean);
            jspInclude(page);
            pageContext.getRequest().setAttribute(CURRENT_BEAN, previousComponent);
            uiBean.afterRenderBean();
        } catch (Exception e) {
            handleError(e);
        } finally {
            pageContext.getRequest().setAttribute(CURRENT_BEAN, previousComponent);
            trace.end();
View Full Code Here

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

        return sb.toString();
    }

    public String encodeFromContext(PageContext pageContext, String name) {
        Panel panel = (Panel) pageContext.getRequest().getAttribute(Parameters.RENDER_PANEL);
        UIBeanHandler factoryComponent = (UIBeanHandler) pageContext.getRequest().getAttribute(UseComponentTag.CURRENT_BEAN);
        return encode(panel, factoryComponent, name);
    }
View Full Code Here

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

    /**
     * @see javax.servlet.jsp.tagext.TagSupport
     */
    public int doEndTag() throws JspTagException {
        Panel panel = (Panel) pageContext.getRequest().getAttribute(Parameters.RENDER_PANEL);
        UIBeanHandler factoryComponent = (UIBeanHandler) pageContext.getRequest().getAttribute(UseComponentTag.CURRENT_BEAN);
        String encodedName = encode(panel, factoryComponent, name);
        try {
            pageContext.getOut().print(encodedName);
        } catch (Exception e) {
            handleError(e);
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.