/** * Delegates to wrapped tag. * @throws <code>RuntimeException</code>, if the wrapped tag * is not an instance of <code>TagSupport</code> */ public Object getValue(String key) { checkTagSupport(); return ((TagSupport)tag).getValue(key); }
/** * Delegates to wrapped tag. * @throws <code>RuntimeException</code>, if the wrapped tag * is not an instance of <code>TagSupport</code> */ public Object getValue(String key) { checkTagSupport(); return ((TagSupport)tag).getValue(key); }
/** * Delegates to wrapped tag. * @throws <code>RuntimeException</code>, if the wrapped tag * is not an instance of <code>TagSupport</code> */ public Object getValue(String key) { checkTagSupport(); return ((TagSupport)tag).getValue(key); }
/** * Delegates to wrapped tag. * @throws <code>RuntimeException</code>, if the wrapped tag * is not an instance of <code>TagSupport</code> */ public Object getValue(String key) { checkTagSupport(); return ((TagSupport)tag).getValue(key); }
/** * Delegates to wrapped tag. * @throws <code>RuntimeException</code>, if the wrapped tag * is not an instance of <code>TagSupport</code> */ public Object getValue(String key) { checkTagSupport(); return ((TagSupport)tag).getValue(key); }
/** * Delegates to wrapped tag. * @throws <code>RuntimeException</code>, if the wrapped tag * is not an instance of <code>TagSupport</code> */ public Object getValue(String key) { checkTagSupport(); return ((TagSupport)tag).getValue(key); }
/** * 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 ); }
List<Tag> deferredChildren = (List<Tag>) ( (TagSupport) tag ).getValue( DEFERRED_CHILD_KEY );
String field = (String) super.getValue("field"); tagBuilder.setField(field); if (src instanceof State) {