Examples of SelectionList


Examples of org.apache.cocoon.woody.datatype.SelectionList

                String valuePath = Context.toString(valuePathArg);
                String labelPath = Context.toString(labelPathArg);
                ((SelectableWidget)delegate).setSelectionList(arg, valuePath, labelPath);
            } else {
                if (arg instanceof SelectionList) {
                    SelectionList selectionList = (SelectionList)arg;
                    ((SelectableWidget)delegate).setSelectionList(selectionList);
                } else {
                    String str = Context.toString(arg);
                    ((SelectableWidget)delegate).setSelectionList(str);
                }
View Full Code Here

Examples of org.apache.cocoon.woody.datatype.SelectionList

                if ("".equals(listType)) {
                    listType = null;
                }

                builder = (SelectionListBuilder)builderSelector.select(listType);
                SelectionList list = builder.build(selectionListElement, widget.getDatatype());
                widget.setSelectionList(list);
            } finally {
                if (builder != null) {
                    builderSelector.release(builder);
                }
View Full Code Here

Examples of org.apache.cocoon.woody.datatype.SelectionList

                if ("".equals(listType)) {
                    listType = null;
                }

                builder = (SelectionListBuilder)builderSelector.select(listType);
                SelectionList list = builder.build(selectionListElement, widget.getDatatype());
                widget.setSelectionList(list);
            } finally {
                if (builder != null) {
                    builderSelector.release(builder);
                }
View Full Code Here

Examples of org.apache.cocoon.woody.datatype.SelectionList

                String valuePath = Context.toString(valuePathArg);
                String labelPath = Context.toString(labelPathArg);
                ((SelectableWidget)delegate).setSelectionList(arg, valuePath, labelPath);
            } else {
                if (arg instanceof SelectionList) {
                    SelectionList selectionList = (SelectionList)arg;
                    ((SelectableWidget)delegate).setSelectionList(selectionList);
                } else {
                    String str = Context.toString(arg);
                    ((SelectableWidget)delegate).setSelectionList(str);
                }
View Full Code Here

Examples of org.apache.cocoon.woody.datatype.SelectionList

        if (action.equals("updatemodels")) {
            Field make = (Field)form.getWidget("make");
            Field model = (Field)form.getWidget("model");

            String src = "cocoon:/cars/" + make.getValue();
            SelectionList list = new DynamicSelectionList(model.getDatatype(), src, serviceManager);
            model.setSelectionList(list);
        }
    }
View Full Code Here

Examples of org.apache.cocoon.woody.datatype.SelectionList

        // when definition are managed like components.
        widget.service(this.serviceManager);

        Element selectionListElement = DomHelper.getChildElement(widgetElement, Constants.WD_NS, "selection-list");
        if (selectionListElement != null) {
            SelectionList selectionList;
            String src = selectionListElement.getAttribute("src");
            if (src.length() > 0) {
                boolean dynamic = DomHelper.getAttributeAsBoolean(selectionListElement, "dynamic", false);
                if (!dynamic) {
                    selectionListElement = readSelectionList(src);
View Full Code Here

Examples of org.apache.cocoon.woody.datatype.SelectionList

        if (action.equals("updatemodels")) {
            Field make = (Field)form.getWidget("make");
            Field model = (Field)form.getWidget("model");

            String src = "cocoon:/cars/" + make.getValue();
            SelectionList list = new DynamicSelectionList(model.getDatatype(), src, serviceManager);
            model.setSelectionList(list);
        }
    }
View Full Code Here

Examples of org.apache.cocoon.woody.datatype.SelectionList

     * @return true if a selectionlist has actually been build.
     */
    protected boolean buildSelectionList(Element widgetElement, AbstractDatatypeWidgetDefinition widget) throws Exception {
        Element selectionListElement = DomHelper.getChildElement(widgetElement, Constants.WD_NS, "selection-list");
        if (selectionListElement != null) {
            SelectionList selectionList;
            String src = selectionListElement.getAttribute("src");
            if (src.length() > 0) {
                boolean dynamic = DomHelper.getAttributeAsBoolean(selectionListElement, "dynamic", false);
                if (!dynamic) {
                    selectionListElement = readSelectionList(src);
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.