customTagModel = new TagTransformModel(tagNameCData, tagClass); } else { customTagModel = new SimpleTagDirectiveModel(tagNameCData, tagClass);
throws TemplateException, IOException { try { SimpleTag tag = (SimpleTag) getTagInstance(); final FreeMarkerPageContext pageContext = PageContextFactory.getCurrentPageContext(); pageContext.pushWriter(new JspWriterAdapter(env.getOut())); tag.setParent(parentTag); setupTag(tag, args, pageContext.getObjectWrapper()); if (body != null) { tag.setJspBody(new JspFragment() { throw e; } catch (Exception e) { throw toTemplateModelExceptionOrRethrow(e);
throws TemplateException, IOException { try { SimpleTag tag = (SimpleTag)getTagInstance(); final FreeMarkerPageContext pageContext = PageContextFactory.getCurrentPageContext(); pageContext.pushWriter(new JspWriterAdapter(env.getOut())); tag.setParent(parentTag); setupTag(tag, args, pageContext.getObjectWrapper()); if(body != null) { tag.setJspBody(new JspFragment() {
throws TemplateException, IOException { try { SimpleTag tag = (SimpleTag) getTagInstance(); final FreeMarkerPageContext pageContext = PageContextFactory.getCurrentPageContext(); pageContext.pushWriter(new JspWriterAdapter(env.getOut())); tag.setParent(parentTag); setupTag(tag, args, pageContext.getObjectWrapper()); if (body != null) { tag.setJspBody(new JspFragment() { throw e; } catch (Exception e) { throw toTemplateModelExceptionOrRethrow(e);
impl = new SimpleTagDirectiveModel(tagClass);
throws TemplateException, IOException { try { SimpleTag tag = (SimpleTag) getTagInstance(); final FreeMarkerPageContext pageContext = PageContextFactory.getCurrentPageContext(); pageContext.pushWriter(new JspWriterAdapter(env.getOut())); tag.setParent(parentTag); setupTag(tag, args, pageContext.getObjectWrapper()); if (body != null) { tag.setJspBody(new JspFragment() { throw e; } catch (Exception e) { throw toTemplateModelExceptionOrRethrow(e);
customTagModel = new TagTransformModel(tagNameCData, tagClass); } else { customTagModel = new SimpleTagDirectiveModel(tagNameCData, tagClass);
customTagModel = new TagTransformModel(tagNameCData, tagClass); } else { customTagModel = new SimpleTagDirectiveModel(tagNameCData, tagClass);