Package org.openfaces.component.util

Examples of org.openfaces.component.util.ForEach


    @Override
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        if (!component.isRendered()) return;
        super.encodeBegin(context, component);
        ForEach forEach = (ForEach) component;
        forEach.cleanData();
        forEach.setObjectId(null);
        String wrapperTagName = forEach.getWrapperTagName();
        if (wrapperTagName == null || wrapperTagName.length() == 0)
            return;
        ResponseWriter writer = context.getResponseWriter();
        String clientId = forEach.getClientId(context);
        writer.startElement(wrapperTagName, forEach);
        writer.writeAttribute("id", clientId, null);
        String classStr = Styles.getCSSClass(context, forEach, forEach.getStyle(), forEach.getStyleClass());
        if (classStr != null) {
            writer.writeAttribute("class", classStr, null);
        }
        Styles.renderStyleClasses(context, forEach);
View Full Code Here


    @Override
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
        if (!component.isRendered())
            return;
        ForEach forEach = (ForEach) component;
        forEach.setObjectId(null);
        while (forEach.hasNext()) {
            forEach.next();
            super.encodeChildren(context, component);
        }
        forEach.setObjectId(null);
    }
View Full Code Here

    @Override
    public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
        if (!component.isRendered()) return;
        super.encodeEnd(context, component);
        ForEach forEach = (ForEach) component;
        String wrapperTagName = forEach.getWrapperTagName();
        if (wrapperTagName == null || wrapperTagName.length() == 0)
            return;
        ResponseWriter writer = context.getResponseWriter();
        writer.endElement(wrapperTagName);
View Full Code Here

TOP

Related Classes of org.openfaces.component.util.ForEach

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.