Package org.apache.cocoon.woody.datatype

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


        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

     * @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

Related Classes of org.apache.cocoon.woody.datatype.SelectionList

Copyright © 2018 www.massapicom. 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.