/** * <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); }
/** * <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); }