Example usage for org.springframework.web.servlet.tags.form OptionsTag setItems

List of usage examples for org.springframework.web.servlet.tags.form OptionsTag setItems

Introduction

In this page you can find the example usage for org.springframework.web.servlet.tags.form OptionsTag setItems.

Prototype

public void setItems(Object items) 

Source Link

Document

Set the java.util.Collection , java.util.Map or array of objects used to generate the inner ' option ' tags.

Usage

From source file:org.apache.jsp.webpage.modules.gen.genTableForm_jsp.java

private boolean _jspx_meth_form_005foptions_005f0(JspTag _jspx_th_form_005fselect_005f0,
        PageContext _jspx_page_context, int[] _jspx_push_body_count_form_005fselect_005f0) throws Throwable {
    _jspx_page_context.getOut();/*  ww w. j av  a2 s . c  o  m*/
    OptionsTag _jspx_th_form_005foptions_005f0 = (OptionsTag) this._005fjspx_005ftagPool_005fform_005foptions_0026_005fitems_005fitemValue_005fitemLabel_005fhtmlEscape_005fnobody
            .get(OptionsTag.class);

    try {
        _jspx_th_form_005foptions_005f0.setPageContext(_jspx_page_context);
        _jspx_th_form_005foptions_005f0.setParent((Tag) _jspx_th_form_005fselect_005f0);
        _jspx_th_form_005foptions_005f0.setItems(PageContextImpl.proprietaryEvaluate(
                "${fns:getDictList(\'table_type\')}", Object.class, _jspx_page_context, _jspx_fnmap_2));
        _jspx_th_form_005foptions_005f0.setItemLabel("label");
        _jspx_th_form_005foptions_005f0.setItemValue("value");
        _jspx_th_form_005foptions_005f0.setHtmlEscape(false);
        int[] _jspx_push_body_count_form_005foptions_005f0 = new int[1];

        try {
            _jspx_th_form_005foptions_005f0.doStartTag();
            if (_jspx_th_form_005foptions_005f0.doEndTag() == 5) {
                return true;
            }
        } catch (Throwable var15) {
            while (true) {
                int var10003 = _jspx_push_body_count_form_005foptions_005f0[0];
                int var10000 = _jspx_push_body_count_form_005foptions_005f0[0];
                _jspx_push_body_count_form_005foptions_005f0[0] = var10003 - 1;
                if (var10000 <= 0) {
                    _jspx_th_form_005foptions_005f0.doCatch(var15);
                    break;
                }

                _jspx_page_context.popBody();
            }
        } finally {
            _jspx_th_form_005foptions_005f0.doFinally();
        }
    } finally {
        this._005fjspx_005ftagPool_005fform_005foptions_0026_005fitems_005fitemValue_005fitemLabel_005fhtmlEscape_005fnobody
                .reuse(_jspx_th_form_005foptions_005f0);
    }

    return false;
}

From source file:org.apache.jsp.webpage.modules.gen.genTableForm_jsp.java

private boolean _jspx_meth_form_005foptions_005f1(JspTag _jspx_th_form_005fselect_005f1,
        PageContext _jspx_page_context, int[] _jspx_push_body_count_form_005fselect_005f1) throws Throwable {
    _jspx_page_context.getOut();/*w  w  w. j a va2s  . com*/
    OptionsTag _jspx_th_form_005foptions_005f1 = (OptionsTag) this._005fjspx_005ftagPool_005fform_005foptions_0026_005fitems_005fitemValue_005fitemLabel_005fhtmlEscape_005fnobody
            .get(OptionsTag.class);

    try {
        _jspx_th_form_005foptions_005f1.setPageContext(_jspx_page_context);
        _jspx_th_form_005foptions_005f1.setParent((Tag) _jspx_th_form_005fselect_005f1);
        _jspx_th_form_005foptions_005f1.setItems(PageContextImpl.proprietaryEvaluate("${tableList}",
                Object.class, _jspx_page_context, (ProtectedFunctionMapper) null));
        _jspx_th_form_005foptions_005f1.setItemLabel("nameAndComments");
        _jspx_th_form_005foptions_005f1.setItemValue("name");
        _jspx_th_form_005foptions_005f1.setHtmlEscape(false);
        int[] _jspx_push_body_count_form_005foptions_005f1 = new int[1];

        try {
            _jspx_th_form_005foptions_005f1.doStartTag();
            if (_jspx_th_form_005foptions_005f1.doEndTag() == 5) {
                return true;
            }
        } catch (Throwable var15) {
            while (true) {
                int var10003 = _jspx_push_body_count_form_005foptions_005f1[0];
                int var10000 = _jspx_push_body_count_form_005foptions_005f1[0];
                _jspx_push_body_count_form_005foptions_005f1[0] = var10003 - 1;
                if (var10000 <= 0) {
                    _jspx_th_form_005foptions_005f1.doCatch(var15);
                    break;
                }

                _jspx_page_context.popBody();
            }
        } finally {
            _jspx_th_form_005foptions_005f1.doFinally();
        }
    } finally {
        this._005fjspx_005ftagPool_005fform_005foptions_0026_005fitems_005fitemValue_005fitemLabel_005fhtmlEscape_005fnobody
                .reuse(_jspx_th_form_005foptions_005f1);
    }

    return false;
}