Examples of XFUploadAttributes


Examples of com.volantis.mcs.papi.XFUploadAttributes

    String getInitialValue(
            MarinerPageContext pageContext,
            PAPIAttributes papiAttributes)
            throws PAPIException {

        XFUploadAttributes attributes = (XFUploadAttributes) papiAttributes;

        return attributes.getInitial();
    }
View Full Code Here

Examples of com.volantis.mcs.papi.XFUploadAttributes

                = ContextInternals.getMarinerPageContext(context);

        VolantisProtocol protocol = pageContext.getProtocol();
        if (protocol.getProtocolConfiguration().isFileUploadSupported()) {

            XFUploadAttributes attributes = (XFUploadAttributes) papiAttributes;

            // Create a new protocol attributes object every time, as this element
            // could be reused before the attributes have actually been finished with
            // by the protocol.
            com.volantis.mcs.protocols.XFUploadAttributes pattributes
                    = new com.volantis.mcs.protocols.XFUploadAttributes();

            // Initialise the attributes specific to this field.
            TextAssetReference object;
            String value;

            PolicyReferenceResolver resolver =
                    pageContext.getPolicyReferenceResolver();

            // Set the initial value attribute.
            object = resolver.resolveQuotedTextExpression(
                    attributes.getInitial());
            pattributes.setInitial(object);

            // Set the max length attribute.
            value = attributes.getMaxLength();
            if (value != null) {
                pattributes.setMaxLength(Integer.parseInt(value));
            }

            // Initialise form field event 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.