Package com.volantis.mcs.protocols.forms

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


     * Test the getting of the field type. This is simple test to ensure the
     * result returned is never null and the type is TextInputFieldType.
     */
    public void testGetFieldType() throws Exception {
        PAPIElement element = createTestablePAPIElement();
        FieldType type = null;
        XFTextInputElementImpl xfElement = (XFTextInputElementImpl)element;
        type = xfElement.getFieldType(null);
        assertNotNull(type);
        assertTrue(type instanceof TextInputFieldType);
    }
View Full Code Here


        }

        // If this field is not inside a form then render it immediately,
        // otherwise delay rendering until the whole form has been processed.
        if (inline()) {
            FieldType fieldType = getFieldType(attributes);
            fieldType.doField(protocol, pattributes);
        } else {
            // Add a reference back to the form attributes and the form.
            pattributes.setFormAttributes(formAttributes);
            pattributes.setFormData(formAttributes.getFormData());
View Full Code Here

        final XFFormFieldAttributes fieldAttributes =
                (XFFormFieldAttributes) protocolAttributes;
        builder.updateControl(fieldDescriptor, fieldAttributes);

        // effectively all xform controls are inline, so render it immediately
        FieldType fieldType = getFieldType();
        try {
            fieldType.doField(getProtocol(context), fieldAttributes);
        } catch (ProtocolException e) {
            throw new XDIMEException(e);
        }
       
        // If this element is controlled by Field Expander,
View Full Code Here

            // Update the form parameters. This involves iterating through all the
            // fields removing any protocol specific parameters from the request url
            // and adding them to the pure url. Currently the
            for (int i = 0; i < count; i += 1) {
                FieldDescriptor field = (FieldDescriptor) fields.get(i);
                FieldType type = field.getType();
                FieldHandler handler = type.getFieldHandler(protocol);
                if (logger.isDebugEnabled()) {
                    logger.debug("Updating parameter(s) for " + field);
                }
                handler.updateParameterValue(this, field, pureRequestURL,
                                             pureRequestURL);
View Full Code Here

        for (int i = 0; i < count; i += 1) {
            XFFormFieldAttributes fieldAttributes
                = (XFFormFieldAttributes)fields.get(i);
            FieldDescriptor fieldDescriptor
                = fieldAttributes.getFieldDescriptor();
            FieldType fieldType = fieldDescriptor.getType();

            fieldType.doField(this, fieldAttributes);

            // Make sure that we make sure that we close any iterator pane
            // buffers.

            // If the caption container instance was specified then end the
View Full Code Here

TOP

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

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.