/** * Delegates to wrapped tag. * @throws <code>RuntimeException</code>, if the wrapped tag * is not an instance of <code>TagSupport</code> */ public void setValue(String key, Object value) { checkTagSupport(); ((TagSupport)tag).setValue(key, value); }
/** * Delegates to wrapped tag. */ public void setValue(String key, Object value) { checkTagSupport(); ((TagSupport)tag).setValue(key, value); }
/** * Delegates to wrapped tag. */ public void setValue(String key, Object value) { checkTagSupport(); ((TagSupport)tag).setValue(key, value); }
/** * Delegates to wrapped tag. * @throws <code>RuntimeException</code>, if the wrapped tag * is not an instance of <code>TagSupport</code> */ public void setValue(String key, Object value) { checkTagSupport(); ((TagSupport)tag).setValue(key, value); }
/** * Delegates to wrapped tag. * @throws <code>RuntimeException</code>, if the wrapped tag * is not an instance of <code>TagSupport</code> */ public void setValue(String key, Object value) { checkTagSupport(); ((TagSupport)tag).setValue(key, value); }
/** * Delegates to wrapped tag. */ public void setValue(String key, Object value) { checkTagSupport(); ((TagSupport)tag).setValue(key, value); }
/** * Simulates adding the given child Tag to the given parent Tag. * <p> * Whilst the JSP component model provides <code>findAncestorWithClass</code> to allow Tags to * find their parent, there is no mechanism for programmatically adding children to a Tag. This * is a problem for Metawidget, which needs to be able to build Tags, separately process them, * and <em>then</em> render them. * <p> * This method provides a way to defer the rendering of a child, to give us chance to process * it. */ public static void addDeferredChild( TagSupport parentTag, Tag childTag ) { @SuppressWarnings( "unchecked" ) List<Tag> deferredChildren = (List<Tag>) parentTag.getValue( DEFERRED_CHILD_KEY ); if ( deferredChildren == null ) { deferredChildren = CollectionUtils.newArrayList(); parentTag.setValue( DEFERRED_CHILD_KEY, deferredChildren ); } deferredChildren.add( childTag ); }