1 16 package javax.faces.webapp; 17 18 import javax.servlet.jsp.JspException ; 19 import javax.servlet.jsp.JspWriter ; 20 import javax.servlet.jsp.tagext.BodyContent ; 21 import javax.servlet.jsp.tagext.BodyTag ; 22 23 27 public abstract class UIComponentBodyTag 28 extends UIComponentTag 29 implements BodyTag 30 { 31 private BodyContent _bodyContent; 32 33 public int doAfterBody() 34 throws JspException 35 { 36 return getDoAfterBodyValue(); 37 } 38 39 public void doInitBody() 40 throws JspException 41 { 42 } 43 44 public void release() 45 { 46 super.release(); 47 _bodyContent = null; 48 } 49 50 public BodyContent getBodyContent() 51 { 52 return _bodyContent; 53 } 54 55 public void setBodyContent(BodyContent bodyContent) 56 { 57 _bodyContent = bodyContent; 58 } 59 60 public JspWriter getPreviousOut() 61 { 62 return _bodyContent.getEnclosingWriter(); 63 } 64 65 protected int getDoStartValue() 66 throws JspException 67 { 68 return BodyTag.EVAL_BODY_BUFFERED; 69 } 70 71 protected int getDoAfterBodyValue() 72 throws JspException 73 { 74 return BodyTag.SKIP_BODY; 75 } 76 77 } 78 | Popular Tags |