FreeMarkerPageContext pageContext = PageContextFactory.getCurrentPageContext(); Tag parentTag = (Tag) pageContext.peekTopTag(Tag.class); tag.setParent(parentTag); tag.setPageContext(pageContext); setupTag(tag, args, pageContext.getObjectWrapper());
/** * Delegates to wrapped tag. */ public void setParent(Tag parent) { tag.setParent(parent); }
/** * Delegates to wrapped tag. */ public void setParent(Tag parent) { tag.setParent(parent); }
/** * Delegates to wrapped tag. */ public void setParent(Tag parent) { tag.setParent(parent); }
private NestedTag addChild(Object childTag) { if(childTag instanceof Tag) { ((Tag)childTag).setParent(this.tag); } /*else if(childTag instanceof SimpleTag) { ((SimpleTag)childTag).setParent(this.tag); }*/ childs.add(childTag); return (NestedTag)childTag; }
private NestedTag addChild(Object childTag) { if(childTag instanceof Tag) { ((Tag)childTag).setParent(this.tag); } /*else if(childTag instanceof SimpleTag) { ((SimpleTag)childTag).setParent(this.tag); }*/ childs.add(childTag); return (NestedTag)childTag; }
private NestedTag addChild(Object childTag) { if(childTag instanceof Tag) { ((Tag)childTag).setParent(this.tag); } /*else if(childTag instanceof SimpleTag) { ((SimpleTag)childTag).setParent(this.tag); }*/ childs.add(childTag); return (NestedTag)childTag; }
private NestedTag addChild(Object childTag) { if(childTag instanceof Tag) { ((Tag)childTag).setParent(this.tag); } /*else if(childTag instanceof SimpleTag) { ((SimpleTag)childTag).setParent(this.tag); }*/ childs.add(childTag); return (NestedTag)childTag; }
public TagTemplate(PageContext pageContext, T tag, B parent) { this.tag = tag; tag.setPageContext(pageContext); if (parent != null) { tag.setParent(parent); } }
private NestedTag addChild(Object childTag) { if(childTag instanceof Tag) { ((Tag)childTag).setParent(this.tag); } else if(childTag instanceof SimpleTag) { ((SimpleTag)childTag).setParent(this.tag); } childs.add(childTag); return (NestedTag)childTag; }
private NestedTag addChild(Object childTag) { if(childTag instanceof Tag) { ((Tag)childTag).setParent(this.tag); } else if(childTag instanceof SimpleTag) { ((SimpleTag)childTag).setParent(this.tag); } childs.add(childTag); return (NestedTag)childTag; }
private NestedTag addChild(Object childTag) { if(childTag instanceof SimpleTag) { ((SimpleTag)childTag).setParent(parent); } else if(parent instanceof Tag) { if(childTag instanceof Tag) { ((Tag)childTag).setParent((Tag)parent); } } else if(parent instanceof SimpleTag) { if(childTag instanceof Tag) { ((Tag)childTag).setParent(new TagAdapter((SimpleTag)parent)); } } childs.add(childTag); return (NestedTag)childTag; } }
protected void copyAttributes(FacesContext facesContext, U u, T t) { copyFrameworkAttributes(facesContext, u, t); copyNonFrameworkAttributes(facesContext, u, t); t.setParent(getParentTag(facesContext, u, t)); }
protected void setUpTag(final FacesContext context, final PageContext pageContext, final Tag tag, final Tag parentTag) throws JspException { if (parentTag != null) { tag.setParent(parentTag); } tag.setPageContext(pageContext); setupProperties(tag); composeComponentTreeChildren(context, pageContext, tag); }
protected void copyAttributes(FacesContext facesContext, U u, T t) { copyFrameworkAttributes(facesContext, u, t); copyNonFrameworkAttributes(facesContext, u, t); t.setParent(getParentTag(facesContext, u, t)); }
protected void process(final PageContext pageContext, final Tag tag, final Tag parentTag) throws JspException { if (parentTag != null) { tag.setParent(parentTag); } tag.setPageContext(pageContext); setupProperties(tag); if (tag instanceof BodyTag) { processBodyTag(pageContext, (BodyTag) tag); } else if (tag instanceof IterationTag) { processIterationTag(pageContext, (IterationTag) tag); } else { processTag(pageContext, tag); } }