Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.closeElement()


        if (!validateAttributes.isMultiple()) {
            // Close invisible <span> element containg content of
            // the validation messages
            DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);

            currentBuffer.closeElement("span");

            require(WIDGET_VALIDATOR, protocol, attributes);
           
            // Gather all required validate attributes.
            String messageArea = validateAttributes.getMessageArea();
View Full Code Here


        }       
       
        if (usesNativeRendering(protocol, attributes)) {
            DOMOutputBuffer domBuffer = getCurrentBuffer(protocol);

            domBuffer.closeElement("button");           
        } else {
            protocol.writeCloseSpan(spanAttributes);
        }

        // Render the action button controller.
View Full Code Here

        if ( ((CarouselAttributes)attributes).getRefreshAttributes() != null ) {
            require(WidgetScriptModules.BASE_AJAX, protocol, attributes);
        }

        DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);
        currentBuffer.closeElement("ul");
        closeDivElement(currentBuffer)
        // close external div element
        closeDivElement(currentBuffer);
                   
        RefreshAttributes refreshAttributes = ((CarouselAttributes)attributes).getRefreshAttributes();
View Full Code Here

        DOMOutputBuffer dom = getContentBuffer (attributes.getFormData ());
        doBottomFragmentLinks (dom, attributes);

        context.clearFormFragmentResetState();

        dom.closeElement ("div");
        dom.closeElement ("form");
    }

    /**
     * Add extra attributes to the text input tag.
View Full Code Here

        doBottomFragmentLinks (dom, attributes);

        context.clearFormFragmentResetState();

        dom.closeElement ("div");
        dom.closeElement ("form");
    }

    /**
     * Add extra attributes to the text input tag.
     * @param element the mariner element to be updated
View Full Code Here

            value = getInitialValue (attributes);
            if (value != null) {
                dom.appendEncoded (value);
            }

            dom.closeElement ("textarea");
        }
       
        // Registers text input attributes for future retrieval.
        // Used by widget module and multiple validator renderer.
        registerFormFieldAttributes(attributes);
View Full Code Here

                dom.appendLiteral(error);
            }
        }

        // close the element.
        dom.closeElement(menu);
    }

    // javadoc inherited
    public void renderMenuChild(DOMOutputBuffer dom,
                                MenuAttributes attributes,
View Full Code Here

        // VoiceXML markup.
        if ((value = getTextFromReference(attributes.getPrompt(),
                                       TextEncoding.VOICE_XML_PROMPT)) != null) {
            dom.openElement("block");
            dom.appendLiteral(value);
            dom.closeElement("block");
        }

        // Add the help which should already be properly quoted as it contains
        // VoiceXML markup.
        if ((value = getTextFromReference(attributes.getHelp(),
View Full Code Here

        if (nestingDepth != 1) {
            throw new IllegalStateException();
        }
        nestingDepth = 0;

        dom.closeElement("form");

        // Append the sub dialog buffer and then reset it.
        dom.addElement(subDialogs.getRoot());

        // Disconnect the DOM tree from the sub dialog in order to prevent
View Full Code Here

                attributes.getStyles(), StylePropertyDetails.MCS_INPUT_FORMAT);

        // Add the grammar which should already be properly quoted as it
        // contains VoiceXML markup.
        grammar.generateGrammarFromObject(dom, reference);
        dom.closeElement("field");
    }

    // javadoc inherited
    public void doBooleanInput(XFBooleanAttributes 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.