/** * Return the nearest JSF tag that encloses this tag. * * @deprecated */ public static UIComponentTag getParentUIComponentTag(PageContext pageContext) { UIComponentClassicTagBase parentTag = getParentUIComponentClassicTagBase(pageContext); return parentTag instanceof UIComponentTag ? (UIComponentTag)parentTag : new UIComponentTagWrapper(parentTag); }
/** * Return the nearest JSF tag that encloses this tag. * @deprecated */ public static UIComponentTag getParentUIComponentTag(PageContext pageContext) { UIComponentClassicTagBase parentTag = getParentUIComponentClassicTagBase(pageContext); return parentTag instanceof UIComponentTag ? (UIComponentTag) parentTag : new UIComponentTagWrapper(parentTag); }
/** * <p>Locate and return the nearest enclosing {@link UIComponentTag} * if any; otherwise, return <code>null</code>.</p> * * @param context <code>PageContext</code> for the current page */ public static UIComponentTag getParentUIComponentTag(PageContext context) { UIComponentClassicTagBase result = getParentUIComponentClassicTagBase(context); if (!(result instanceof UIComponentTag)) { return new UIComponentTagAdapter(result); } return ((UIComponentTag) result); }
/** * <p>Locate and return the nearest enclosing {@link UIComponentTag} * if any; otherwise, return <code>null</code>.</p> * * @param context <code>PageContext</code> for the current page * * @return the parent tag */ public static UIComponentTag getParentUIComponentTag(PageContext context) { UIComponentClassicTagBase result = getParentUIComponentClassicTagBase(context); if (!(result instanceof UIComponentTag)) { return new UIComponentTagAdapter(result); } return ((UIComponentTag) result); }
/** * <p>Locate and return the nearest enclosing {@link UIComponentTag} * if any; otherwise, return <code>null</code>.</p> * * @param context <code>PageContext</code> for the current page */ public static UIComponentTag getParentUIComponentTag(PageContext context) { UIComponentClassicTagBase result = getParentUIComponentClassicTagBase(context); if (!(result instanceof UIComponentTag)) { return new UIComponentTagAdapter(result); } return ((UIComponentTag) result); }
/** * <p>Locate and return the nearest enclosing {@link UIComponentTag} * if any; otherwise, return <code>null</code>.</p> * * @param context <code>PageContext</code> for the current page * * @return the parent tag */ public static UIComponentTag getParentUIComponentTag(PageContext context) { UIComponentClassicTagBase result = getParentUIComponentClassicTagBase(context); if (!(result instanceof UIComponentTag)) { return new UIComponentTagAdapter(result); } return ((UIComponentTag) result); }
/** * <p>Locate and return the nearest enclosing {@link UIComponentTag} * if any; otherwise, return <code>null</code>.</p> * * @param context <code>PageContext</code> for the current page */ public static UIComponentTag getParentUIComponentTag(PageContext context) { UIComponentClassicTagBase result = getParentUIComponentClassicTagBase(context); if (!(result instanceof UIComponentTag)) { return new UIComponentTagAdapter(result); } return ((UIComponentTag) result); }
/** * <p>Locate and return the nearest enclosing {@link UIComponentTag} * if any; otherwise, return <code>null</code>.</p> * * @param context <code>PageContext</code> for the current page * * @return the parent tag */ public static UIComponentTag getParentUIComponentTag(PageContext context) { UIComponentClassicTagBase result = getParentUIComponentClassicTagBase(context); if (!(result instanceof UIComponentTag)) { return new UIComponentTagAdapter(result); } return ((UIComponentTag) result); }
/** * <p>Locate and return the nearest enclosing {@link UIComponentTag} * if any; otherwise, return <code>null</code>.</p> * * @param context <code>PageContext</code> for the current page * * @return the parent tag */ public static UIComponentTag getParentUIComponentTag(PageContext context) { UIComponentClassicTagBase result = getParentUIComponentClassicTagBase(context); if (!(result instanceof UIComponentTag)) { return new UIComponentTagAdapter(result); } return ((UIComponentTag) result); }
/** * <p>Locate and return the nearest enclosing {@link UIComponentTag} * if any; otherwise, return <code>null</code>.</p> * * @param context <code>PageContext</code> for the current page * * @return the parent tag */ public static UIComponentTag getParentUIComponentTag(PageContext context) { UIComponentClassicTagBase result = getParentUIComponentClassicTagBase(context); if (!(result instanceof UIComponentTag)) { return new UIComponentTagAdapter(result); } return ((UIComponentTag) result); }