Package com.volantis.mcs.protocols.forms

Examples of com.volantis.mcs.protocols.forms.AbstractForm


     * Check if form is fragmeted
     *
     * @return true if form is fragmented
     */
    protected boolean isFragmented() {
        AbstractForm formData = fd.getFormAttributes() != null ?
                fd.getFormAttributes().getFormData() : null;
        return formData != null && formData.isFragmented();
    }
View Full Code Here


     * @todo later XDIME-CP style forms properly
     */
    protected void doFormLink(OutputBuffer dom, XFFormAttributes attributes,
            Link link) throws ProtocolException {

        AbstractForm form = attributes.getFormData();
        String formName = form.getName();
        AbstractFormFragment fragment = link.getFormFragment();
        String fragmentName = fragment.getName();

        MarinerURL marinerURL = context.getRequestURL(true);
        if (!marinerURL.isRelative()) {
View Full Code Here

    protected String resolveFormAction(XFFormAttributes attributes) {

        String resolvedFormAction = null;
        if (attributes != null) {
            String resolvedLink = getLinkFromReference(attributes.getAction());
            AbstractForm form = attributes.getFormData();
            if (form != null ) {
                // Get the context path URL which is environment dependent.
                EnvironmentContext envContext = context.getEnvironmentContext();
                MarinerURL contextPathURL = null;
                if (envContext != null) {
View Full Code Here

            // This is a multiple select field and if the form is fragmented
            // and not being reset then we need to update the selected
            // flags in the options.
            XFFormAttributes formAttributes = attributes.getFormAttributes();
            if (formAttributes != null) {
                AbstractForm form = attributes.getFormData();

                // If the form is not being fragmented, or it is being
                // reset then do nothing as the default settings of the
                // options are correct.
                if (!form.isFragmented()
                    && context.getFormFragmentResetState()) {
                    return;
                }

                // Get the current values stored in the session.
View Full Code Here

        if (logger.isDebugEnabled()) {
            logger.debug("Rendering fragment links before form");
        }

        AbstractForm form = attributes.getFormData();

        // Check if any fragmentation links need to be written
        if (form.isFragmented()) {
            AbstractFormFragment active = getCurrentFormFragment(form);
            AbstractFormFragment previous = form
                    .getPreviousFormFragment(active);
            AbstractFormFragment next = form.getNextFormFragment(active);

            List links = active.getBeforeFragmentLinks(previous, next);

            for (int i = 0; i < links.size(); i++) {
                Link link = (Link) links.get(i);
View Full Code Here

        if (logger.isDebugEnabled()) {
            logger.debug("Rendering fragment links after form");
        }

        AbstractForm form = attributes.getFormData();

        // Check if any fragmentation links need to be written
        if (form.isFragmented()) {
            AbstractFormFragment active = getCurrentFormFragment(form);
            AbstractFormFragment previous = form
                    .getPreviousFormFragment(active);
            AbstractFormFragment next = form.getNextFormFragment(active);

            List links = active.getAfterFragmentLinks(previous, next);

            for (int i = 0; i < links.size(); i++) {
                Link link = (Link) links.get(i);
View Full Code Here

    }

    // Javadoc inherited.
    public void doImplicitValue(XFImplicitAttributes attributes) {

        AbstractForm form = attributes.getFormData();
        DOMOutputBuffer dom = getPreambleBuffer(form);
        doImplicitValue(dom, attributes);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.forms.AbstractForm

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.