Examples of SelectAttributes


Examples of com.volantis.mcs.papi.SelectAttributes

            PAPIAttributes papiAttributes)
            throws PAPIException {

        MarinerPageContext pageContext =
                ContextInternals.getMarinerPageContext(context);
        SelectAttributes attributes = (SelectAttributes) papiAttributes;
        Precept precept = Precept.MATCH_FIRST;
        Value expr = BooleanValue.TRUE;

        if (attributes.getPrecept() != null) {
            precept = Precept.literal(attributes.getPrecept());

            if (precept == null) {
                throw new PAPIException(exceptionLocalizer.format(
                        "unrecognized-precept-value",
                        attributes.getPrecept()));
            }
        }

        if (attributes.getExpr() != null) {
            ExpressionContext expressionContext =
                    ContextInternals.getEnvironmentContext(context).
                            getExpressionContext();

            try {
                expr = expressionContext.getFactory().
                        createExpressionParser().
                        parse(attributes.getExpr()).evaluate(expressionContext);
            } catch (ExpressionException e) {
                throw new PAPIException(e);
            }
        }
View Full Code Here

Examples of com.volantis.mcs.papi.SelectAttributes

        assertNotNull("Unknown element name, select check testcase.",
            factory);

        PAPIElement element = factory.createPAPIElement();
        SelectAttributes attributes = (SelectAttributes)
                factory.createElementSpecificAttributes();

        // Process start element, this is the thing which does
        // the work.
        int result = element.elementStart(getCurrentRequestContext(), attributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.SelectAttributes

*/

public class SelectElement extends WidgetElement {
    public SelectElement(XDIMEContextInternal context) {
        super(WidgetElements.SELECT, context);
        protocolAttributes = new SelectAttributes();
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.SelectAttributes

            return;
        }       

        require(WidgetScriptModules.BASE_BB_CONTROLS_SELECT, protocol, attributes);

        SelectAttributes selectAttributes = (SelectAttributes)attributes;
       
        // Render input element.
        DOMOutputBuffer buffer = getCurrentBuffer(protocol);
       
        selectElement = buffer.openStyledElement("select", attributes.getStyles());
       
        if (selectAttributes.getId() != null) {
            selectElement.setAttribute("id", selectAttributes.getId());
        } else {
            selectElement.setAttribute("id", protocol.getMarinerPageContext().generateUniqueFCID());           
        }       

        String mode = selectAttributes.getMode();
        if (mode != null && mode.equals("multiple")) {
            selectElement.setAttribute("multiple", "multiple");
        }
       
        // set default size=1
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.SelectAttributes

       
        DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);
        currentBuffer.closeElement("select");
       
        // Get widget attributes.
        SelectAttributes selectAttributes = (SelectAttributes) attributes;
       
        PropertyReference propertyReference = selectAttributes.getPropertyReference();
       
        // Finally, render the JavaScript part.
        StringBuffer scriptBuffer = new StringBuffer();
       
        if (attributes.getId() != null) {
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.