Package org.apache.empire.struts2.html

Examples of org.apache.empire.struts2.html.HtmlWriter.startTag()


        // HtmlWriter
        HtmlTagDictionary dic = HtmlTagDictionary.getInstance();
        orderIndicator = getSortOrderIdicator(hri, dic);
        // Start Tag
        HtmlWriter w = new HtmlWriter(pageContext.getOut());
        HtmlTag wrap = w.startTag(dic.TableHeadColumnTag());
        wrap.addAttribute("id", getId());
        wrap.addAttribute("class", getCssClass(hri));
        setStyleAndWrap(wrap, hri);
        wrap.addAttribute("width", width);
        wrap.addAttribute("height", height);
View Full Code Here


            // render Link
            super.doEndTag();
        }
        else
        {   // The value
            HtmlTag text = w.startTag("span"); // dic.AnchorDisabledTag()
            text.addAttribute("class", getLinkClass(hri, dic));
            text.beginBody(getColumnTitle());
            text.endTag(getBody());
        }
        // Don't call base class
View Full Code Here

    public int doStartTag() throws JspException
    {
        // Tabel cell tag
        HtmlTagDictionary dic = HtmlTagDictionary.getInstance();
        HtmlWriter w = new HtmlWriter(pageContext.getOut());
        HtmlTag menu = w.startTag(dic.MenuTag());
        addStandardAttributes(menu, null);
        menu.beginBody(true);
        // Create Menu Item Info
        MenuInfo mi = new MenuInfo();
        // Get Stack
View Full Code Here

            if (useBean())
                setId(null); // Id has already be used for componentBean
            // Render Tag
            HtmlTagDictionary dic = HtmlTagDictionary.getInstance()
            HtmlWriter w = new HtmlWriter(pageContext.getOut());
            HtmlTag wrapTag  = w.startTag( dic.FormPartWrapperTag());
            addStandardAttributes(wrapTag, dic.FormPartWrapperClass());
            wrapTag.addAttributes(dic.FormPartWrapperAttributes());
            wrapTag.beginBody(true);
        }
        // do Start
View Full Code Here

        MenuTag.MenuInfo mi = getMenuInfo();
        boolean current = isCurrent(mi);
        // HtmlWriter
        HtmlTagDictionary dic = HtmlTagDictionary.getInstance();
        HtmlWriter w = new HtmlWriter(pageContext.getOut());
        HtmlTag wrap = w.startTag("li");
        addStandardAttributes(wrap, null);
        this.cssClass = getCssClass(mi, current);
        this.cssStyle = null;
        wrap.beginBody();
        // The Anchors
View Full Code Here

        HtmlWriter w = new HtmlWriter(pageContext.getOut());
        // Wrap button like an input control
        if (getBoolean(embed, false))
        {
            // the wrapper (only if renderLabel && renderControl are both true)
            HtmlTag wrapper = w.startTag( dic.InputWrapperTag());
            wrapper.addAttribute("class", dic.InputWrapperClass());
            wrapper.beginBody(true);
           
            HtmlTag wrapCtrl = w.startTag( dic.SubmitControlTag());
            wrapCtrl.addAttribute("class", dic.SubmitControlClass());
View Full Code Here

            // the wrapper (only if renderLabel && renderControl are both true)
            HtmlTag wrapper = w.startTag( dic.InputWrapperTag());
            wrapper.addAttribute("class", dic.InputWrapperClass());
            wrapper.beginBody(true);
           
            HtmlTag wrapCtrl = w.startTag( dic.SubmitControlTag());
            wrapCtrl.addAttribute("class", dic.SubmitControlClass());
            wrapCtrl.addAttributes(dic.SubmitControlAttributes());
            wrapCtrl.beginBody();
        }
        // Button
View Full Code Here

    public int doStartTag()
        throws JspException
    {
        // Tabel cell tag
        HtmlWriter w = new HtmlWriter(pageContext.getOut());
        HtmlTag cb = w.startTag("input");
        cb.addAttribute("type", "checkbox");
        addStandardAttributes(cb, null);
        cb.addAttribute("name",  getTagName(name));
        cb.addAttributeNoCheck("value", getStringValue(), true);
        cb.addAttribute("checked", getChecked());
View Full Code Here

        cb.addAttribute("onblur",    this.onblur);
        cb.endTag();
        // wrap.beginBody(getTextValue());
        if (hiddenName!=null)
        {   // Render Additional Hidden Control
            HtmlTag hidden = w.startTag("input");
            hidden.addAttribute("type", "hidden");
            hidden.addAttribute("name",  hiddenName);
            hidden.addAttributeNoCheck("value", getStringValue(), true);
            hidden.endTag();
        }
View Full Code Here

    public int doStartTag()
        throws JspException
    {
        // Select Input Tag
        HtmlWriter w = new HtmlWriter(pageContext.getOut());
        HtmlTag select = w.startTag("select");
        addStandardAttributes(select, null);
        select.addAttribute("name",     getTagName(name));
        select.addAttribute("disabled", getBoolean(disabled, false));
        select.addAttribute("tabindex", this.tabindex);
        // Event Attributes
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.