/** * Process the end tag. */ @Override public int doEndTag() { // retrieve parent tag which accepts the collection produced by this tag ValueAcceptingTagIF acceptingTag = (ValueAcceptingTagIF) findAncestorWithClass(this, ValueAcceptingTagIF.class); // kick it over to the accepting tag acceptingTag.accept( resultCollection ); // reset member collection resultCollection = null; return EVAL_PAGE; }
/** * Process the end tag. */ @Override public int doEndTag() { // retrieve parent tag which accepts the produced collection by this tag ValueAcceptingTagIF acceptingTag = (ValueAcceptingTagIF) findAncestorWithClass(this, ValueAcceptingTagIF.class); // kick it over to the accepting tag acceptingTag.accept( resultCollection ); // reset member collection resultCollection = null; return EVAL_PAGE; }
/** * Process the end tag. */ @Override public int doEndTag() { // retrieve parent tag which accepts the produced collection by this tag ValueAcceptingTagIF acceptingTag = (ValueAcceptingTagIF) findAncestorWithClass(this, ValueAcceptingTagIF.class); // kick it over to the accepting tag acceptingTag.accept( resultCollection ); // reset member collection resultCollection = null; return EVAL_PAGE; }
/** * Process the end tag. */ @Override public int doEndTag() { // retrieve parent tag which accepts the produced collection by this tag ValueAcceptingTagIF acceptingTag = (ValueAcceptingTagIF) findAncestorWithClass(this, ValueAcceptingTagIF.class); // kick it over to the accepting tag acceptingTag.accept( resultCollection ); // reset member collection resultCollection = null; return EVAL_PAGE; }
/** * Process the end tag. */ @Override public int doEndTag() throws JspException { // establish old lexical scope, back to outside of the condition contextTag.getContextManager().popScope(); // pass received collections further upwards ValueAcceptingTagIF acceptingTag = (ValueAcceptingTagIF) findAncestorWithClass(this, ValueAcceptingTagIF.class); if (acceptingTag != null) for (int ix = 0; ix < inputs.size(); ix++) acceptingTag.accept((Collection) inputs.get(ix)); // Reset members contextTag = null; collection = null; decider = null; return EVAL_PAGE; }
/** * Actions after some body has been evaluated. */ @Override public int doAfterBody() throws JspTagException { // retrieve parent tag which accepts the result of this operation ValueAcceptingTagIF acceptingTag = (ValueAcceptingTagIF) findAncestorWithClass(this, ValueAcceptingTagIF.class); // get body content which should contain the string we want to set. BodyContent body = getBodyContent(); String content = body.getString(); // construct new collection which consists of one String entry // kick it over to the nearest accepting tag acceptingTag.accept( Collections.singleton(content) ); // reset body contents body.clearBody(); return SKIP_BODY; }
acceptingTag.accept( retval ); else log.info("No accepting tag found (function '" + functionName + "')");
/** * Process the start tag for this instance. */ @Override public int doStartTag() throws JspException { // retrieve parent tag which accepts the produced collection by this tag ValueAcceptingTagIF acceptingTag = (ValueAcceptingTagIF) findAncestorWithClass(this, ValueAcceptingTagIF.class); if (acceptingTag == null) throw new NavigatorRuntimeException(getClass().getName() + "couldn't find value-accepting ancestor tag to pass value to!"); // try to retrieve default value from ContextManager ContextTag contextTag = FrameworkUtils.getContextTag(pageContext); ContextManagerIF ctxtMgr = contextTag.getContextManager(); // get collection on which we should compute Collection inputCollection = getInputCollection(ctxtMgr); // collection processing Collection resultCollection = process( inputCollection ); // kick it up to the accepting tag acceptingTag.accept( resultCollection ); // ignore body if variable name is set if (variableName != null) return SKIP_BODY; else return EVAL_BODY_INCLUDE; }
acceptingTag.accept(resColl);
acceptingTag.accept(resColl);
/** * Process the start tag for this instance. */ @Override public int doStartTag() throws JspTagException { // retrieve parent tag which accepts the produced collection by this tag ValueAcceptingTagIF acceptingTag = (ValueAcceptingTagIF) findAncestorWithClass(this, ValueAcceptingTagIF.class); // try to retrieve root ContextTag ContextTag contextTag = FrameworkUtils.getContextTag(pageContext); // get collection of TM Reference entries from Configuration Collection refs = contextTag.getNavigatorApplication().getTopicMapRepository().getReferences(); // kick it up to the accepting tag acceptingTag.accept( refs ); // ignore body, because this is an empty tag return SKIP_BODY; }
/** * Process the end tag. Subclasses implementing this method must * clear member variables. */ @Override public int doEndTag() throws JspException { // retrieve parent tag which accepts the produced collection by this tag ValueAcceptingTagIF acceptingTag = (ValueAcceptingTagIF) findAncestorWithClass(this, ValueAcceptingTagIF.class); // try to retrieve default value from ContextManager this.contextTag = FrameworkUtils.getContextTag(pageContext); ContextManagerIF ctxtMgr = contextTag.getContextManager(); // get collection on which we should compute Collection inputCollection = getInputCollection(ctxtMgr); // collection processing Collection resultCollection = process( inputCollection ); // kick result over to the accepting tag if (acceptingTag != null) acceptingTag.accept( resultCollection ); // reset members this.contextTag = null; this.inputCollection = null; return EVAL_PAGE; }
acceptingTag.accept(result);