Package org.apache.myfaces.wap.component

Examples of org.apache.myfaces.wap.component.CommandButton


            throw new NullPointerException();
        }
        if (!component.isRendered()) return;
       
        ResponseWriter writer = context.getResponseWriter();
        CommandButton comp = (CommandButton)component;
       
        // <do type='accept' label='submit' >
        writer.startElement(Attributes.DO, component);
        RendererUtils.writeAttribute(Attributes.ID, comp.getClientId(context), writer);
        //RenderUtils.writeAttribute(Attributes.STYLE_CLASS, comp.getStyleClass(), writer);
        //RenderUtils.writeAttribute(Attributes.XML_LANG, comp.getXmllang(), writer);
        //RenderUtils.writeAttribute(Attributes.NAME, comp.getName(), writer);
        RendererUtils.writeAttribute(Attributes.LABEL, comp.getValue(), writer);       
        RendererUtils.writeAttribute(Attributes.TYPE, comp.getType(), writer);
       
        /* default value is false, write only if value of attribute emptyok is "true" */
        if (comp.isOptional()) RendererUtils.writeAttribute(Attributes.OPTIONAL, "true", writer);       
               
        if (isReset(comp))
            renderReset(context, comp);
        else
            renderAction(context, comp);
View Full Code Here

TOP

Related Classes of org.apache.myfaces.wap.component.CommandButton

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.