/** * Constructor for a tag with the specified attribute map. * If the specified tag is not an instance of <code>BodyTagSupport</code>, * the methods that delegate to <code>BodyTagSupport</code> specific methods * throw an exception. * @param tag the tag * @param pageContext the corresponding <code>PageContext</code> * @param attributes the attribute map */ public NestedBodyTag(BodyTag tag, PageContext pageContext, Map attributes) { this.tag = tag; this.pageContext = pageContext; tag.setPageContext(pageContext); childs = new ArrayList(); this.attributes = attributes; doRelease = false; }
/** * Constructor for a tag with the specified attribute map. * If the specified tag is not an instance of <code>BodyTagSupport</code>, * the methods that delegate to <code>BodyTagSupport</code> specific methods * throw an exception. * @param tag the tag * @param pageContext the corresponding <code>PageContext</code> * @param attributes the attribute map */ public NestedBodyTag(BodyTag tag, PageContext pageContext, Map attributes) { this.tag = tag; this.pageContext = pageContext; tag.setPageContext(pageContext); childs = new ArrayList(); this.attributes = attributes; doRelease = false; }
/** * Constructor for a tag with the specified attribute map. * If the specified tag is not an instance of <code>BodyTagSupport</code>, * the methods that delegate to <code>BodyTagSupport</code> specific methods * throw an exception. * @param tag the tag * @param pageContext the corresponding <code>PageContext</code> * @param attributes the attribute map */ public NestedBodyTag(BodyTag tag, PageContext pageContext, Map attributes) { this.tag = tag; this.pageContext = pageContext; tag.setPageContext(pageContext); childs = new ArrayList(); this.attributes = attributes; doRelease = false; }
/** * Delegates to wrapped tag. Also calls <code>setPageContext</code> * for all child tags. */ public void setPageContext(PageContext pageContext) { this.pageContext = pageContext; tag.setPageContext(pageContext); for(int ii = 0; ii < childs.size(); ii++) { Object child = childs.get(ii); if(child instanceof Tag) { ((Tag)child).setPageContext(pageContext); } /*else if(child instanceof SimpleTag) { ((SimpleTag)child).setJspContext(pageContext); }*/ } }
/** * Delegates to wrapped tag. Also calls <code>setPageContext</code> * for all child tags. */ public void setPageContext(PageContext pageContext) { this.pageContext = pageContext; tag.setPageContext(pageContext); for(int ii = 0; ii < childs.size(); ii++) { Object child = childs.get(ii); if(child instanceof Tag) { ((Tag)child).setPageContext(pageContext); } /*else if(child instanceof SimpleTag) { ((SimpleTag)child).setJspContext(pageContext); }*/ } }
/** * Delegates to wrapped tag. Also calls <code>setPageContext</code> * for all child tags. */ public void setPageContext(PageContext pageContext) { this.pageContext = pageContext; tag.setPageContext(pageContext); for (Object child : childs) { if (child instanceof Tag) { ((Tag) child).setPageContext(pageContext); } else if (child instanceof SimpleTag) { ((SimpleTag) child).setJspContext(pageContext); } } }
tag.setPageContext(context);
this.out = out; toRtExNoResult(() -> { bodyTag.setPageContext(pageContext);