public void doTag(PortalRenderResponse renderResponse) throws JspException, IOException { AbstractURLTag urlTag = (AbstractURLTag)SimpleTagSupport.findAncestorWithClass(this, AbstractURLTag.class); urlTag.setParam(name, value); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } Request request = runtime.createRequest(); model.execute(name, scopeName, id, ignore, request); }
@Override public JspFragment getJspBody() { return super.getJspBody(); }
@Override public void doTag() throws JspException, IOException { JspFragment jf = this.getJspBody(); String text = ""; try { HttpServletRequest request = (HttpServletRequest) ((PageContext) this.getJspContext()).getRequest(); try { text = getString(request, jf); } catch (Exception e) { String uri = request.getRequestURI(); log.error("key为空,uri:" + uri); text = "file error"; } } finally { if (this.toId == null) { this.getJspContext().getOut().write(text); } else { this.getJspContext().setAttribute(this.toId, text); } super.doTag(); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); model.execute( containerKey, request ); } }
/** * 指定されたタグの親の {@link FormTag} を検索し、そこからフォームオブジェクトのラッパーを取得します。 * * @param tag * タグ * @return フォームオブジェクトのラッパー */ public static FormWrapper getFormWrapper(final SimpleTag tag) { final FormTag formTag = (FormTag) SimpleTagSupport .findAncestorWithClass(tag, FormTag.class); if (formTag == null) { return null; } return formTag.getFormWrapper(); }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); model.execute( name, scope, toName, ignore, request ); } }
/** * Finds the first parent tag of the provided class (or subclass) or implementing the provided interface. * * @return the parent tag * @exception JspException if parent not found */ public static <T> T findAncestor(JspTag from, Class<? extends T> clazz) throws JspException { T parent = clazz.cast(SimpleTagSupport.findAncestorWithClass(from, clazz)); if(parent==null) throw new LocalizedJspException(accessor, "JspTagUtils.findAncestor.notFound", getClassName(from.getClass()), getClassName(clazz)); return parent; }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( role, request, modelBody ); } }
public void doTag(PortalRenderResponse renderResponse) throws JspException, IOException { PortletTag portletTag = (PortletTag)SimpleTagSupport.findAncestorWithClass(this, PortletTag.class); PortletInvocationResponse portletResp = portletTag.result.getResponse(); JspWriter out = getJspContext().getOut(); if (portletResp instanceof FragmentResponse) { FragmentResponse fragment = (FragmentResponse)portletResp; out.write(fragment.getTitle()); } } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( value, expression, role, type, request, modelBody ); } }
public int doEndTag(PortalRenderResponse renderResponse) throws JspException PortletTag portletTag = (PortletTag)SimpleTagSupport.findAncestorWithClass(this, PortletTag.class);
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( name, value, expression, role, type, cascade, request, modelBody ); } }
public void doTag(PortalRenderResponse renderResponse) throws JspException, IOException PortletTag portletTag = (PortletTag)SimpleTagSupport.findAncestorWithClass(this, PortletTag.class);
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( name, role, inherit, cascade, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( template, templateType, templateExpression, role, preparer, flush, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( name, template, role, extendsParam, preparer, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( definitionName, template, templateType, templateExpression, role, preparer, flush, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( ignore, preparer, role, defaultValue, defaultValueRole, defaultValueType, name, value, flush, request, modelBody ); } }
/** {@inheritDoc} */ @Override public void doTag() throws JspException, IOException { AutotagRuntime<org.apache.tiles.request.Request> runtime = new org.apache.tiles.request.jsp.autotag.JspAutotagRuntime(); if (runtime instanceof SimpleTagSupport) { SimpleTagSupport tag = (SimpleTagSupport) runtime; tag.setJspContext(getJspContext()); tag.setJspBody(getJspBody()); tag.setParent(getParent()); tag.doTag(); } org.apache.tiles.request.Request request = runtime.createRequest(); ModelBody modelBody = runtime.createModelBody(); model.execute( ignore, preparer, role, defaultValue, defaultValueRole, defaultValueType, name, value, request, modelBody ); } }