1 14 15 package com.sun.facelets.tag.ui; 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.tag.TagAttribute; 26 import com.sun.facelets.tag.TagAttributeException; 27 import com.sun.facelets.tag.TagConfig; 28 import com.sun.facelets.tag.TagHandler; 29 30 34 public final class DefineHandler extends TagHandler { 35 36 private final String name; 37 38 41 public DefineHandler(TagConfig config) { 42 super(config); 43 TagAttribute attr = this.getRequiredAttribute("name"); 44 if (!attr.isLiteral()) { 45 throw new TagAttributeException(this.tag, attr, "Must be Literal"); 46 } 47 this.name = attr.getValue(); 48 } 49 50 56 public void apply(FaceletContext ctx, UIComponent parent) 57 throws IOException , FacesException, FaceletException, ELException { 58 this.nextHandler.apply(ctx, parent); 59 } 60 61 public String getName() { 62 return this.name; 63 } 64 } 65 | Popular Tags |