/** * @see org.opencms.jsp.I_CmsResourceContainer#hasMoreContent() */ @Deprecated public boolean hasMoreContent() throws JspException { return hasMoreResources(); }
/** * @see javax.servlet.jsp.tagext.BodyTagSupport#doAfterBody() */ @Override public int doAfterBody() throws JspException { // close open direct edit first if (hasMoreResources()) { // another loop is required return EVAL_BODY_AGAIN; } if (OpenCms.getSystemInfo().getServletContainerSettings().isReleaseTagsAfterEnd()) { // need to release manually, JSP container may not call release as required (happens with Tomcat) release(); } // no more files are available, so skip the body and finish the loop return SKIP_BODY; }
/** * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ @Override public int doStartTag() throws JspException, CmsIllegalArgumentException { // get a reference to the parent "content container" class (if available) Tag ancestor = findAncestorWithClass(this, I_CmsResourceContainer.class); I_CmsResourceContainer container = null; if (ancestor != null) { // parent content container available, use preloaded values from this container container = (I_CmsResourceContainer)ancestor; // check if container really is a preloader if (!container.isPreloader()) { // don't use ancestor if not a preloader container = null; } } // initialize the content load tag init(container); hasMoreResources(); return isScopeVarSet() ? SKIP_BODY : EVAL_BODY_INCLUDE; }