Package com.sun.facelets.tag.jstl.core

Examples of com.sun.facelets.tag.jstl.core.IterationStatus


                    renderer = getRenderer(faces);
                }

                int i = begin;
                this.setIndex(i);
                this.updateIterationStatus(new IterationStatus(true, i + step >= end, i, new Integer(begin), new Integer(end), new Integer(step)));
                while (i <= end && this.isIndexAvailable()) {

                    if (PhaseId.RENDER_RESPONSE.equals(phase)
                            && renderer != null) {
                        renderer.encodeChildren(faces, this);
                    } else {
                        itr = this.getChildren().iterator();
                        while (itr.hasNext()) {
                            c = (UIComponent) itr.next();
                            if (PhaseId.APPLY_REQUEST_VALUES.equals(phase)) {
                                c.processDecodes(faces);
                            } else if (PhaseId.PROCESS_VALIDATIONS
                                    .equals(phase)) {
                                c.processValidators(faces);
                            } else if (PhaseId.UPDATE_MODEL_VALUES
                                    .equals(phase)) {
                                c.processUpdates(faces);
                            } else if (PhaseId.RENDER_RESPONSE.equals(phase)) {
                                if (FacesAPI.getVersion() >= 12) {
                                    c.encodeAll(faces);
                                } else {
                                    ComponentSupport.encodeRecursive(faces, c);
                                }
                            }
                        }
                    }
                    i += step;
                    this.setIndex(i);
                    this.updateIterationStatus(new IterationStatus(false, i + step >= end, i, new Integer(begin), new Integer(end), new Integer(step)));
                }
            }
        } catch (IOException e) {
            throw new FacesException(e);
        } finally {
View Full Code Here

TOP

Related Classes of com.sun.facelets.tag.jstl.core.IterationStatus

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.