1 14 15 package com.sun.facelets.tag; 16 17 import java.io.IOException ; 18 19 import javax.el.ELException; 20 import javax.faces.FacesException; 21 import javax.faces.component.UIComponent; 22 23 import com.sun.facelets.FaceletContext; 24 import com.sun.facelets.FaceletException; 25 import com.sun.facelets.FaceletHandler; 26 27 35 public final class CompositeFaceletHandler implements FaceletHandler { 36 37 private final FaceletHandler[] children; 38 private final int len; 39 40 public CompositeFaceletHandler(FaceletHandler[] children) { 41 this.children = children; 42 this.len = children.length; 43 } 44 45 public void apply(FaceletContext ctx, UIComponent parent) throws IOException , FacesException, FaceletException, ELException { 46 for (int i = 0; i < len; i++) { 47 this.children[i].apply(ctx, parent); 48 } 49 } 50 51 public FaceletHandler[] getHandlers() { 52 return this.children; 53 } 54 } 55 | Popular Tags |