@Override public int doStartTag() throws JspException { Invocation invocation = InvocationUtils.getCurrentThreadInvocation(); if (invocation != null) { String msg = invocation.getFlash().get(key); if (logger.isDebugEnabled()) { logger.debug("getFlashMessage: " + key + "=" + msg); } if (msg != null) { try { if (StringUtils.isNotEmpty(prefix)) { pageContext.getOut().print(prefix); } pageContext.getOut().print(msg); if (StringUtils.isNotEmpty(suffix)) { pageContext.getOut().print(suffix); } } catch (IOException e) { throw new JspException("", e); } } } return super.doStartTag(); } }
public int doStartTag() throws JspException { return super.doStartTag(); }
public int doStartTag() throws JspException { return super.doStartTag(); }
public int doStartTag() throws JspException { return super.doStartTag(); }
/** * Process the start tag. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); }
@Override public int doStartTag() throws JspException { try { String currentCounter = this.getCurrentIndex(); this.pageContext.getOut().print(currentCounter); } catch (Throwable t) { _logger.error("error creating (or modifying) counter", t); //ApsSystemUtils.logThrowable(t, this, "doStartTag", "error creating (or modifying) counter"); throw new JspException("error creating (or modifying) counter", t); } return super.doStartTag(); }
@Override public int doStartTag() throws JspException { try { Set<String> groupCodes = this.getAllowedGroups(); this.pageContext.setAttribute(this.getVar(), groupCodes); return super.doStartTag(); } catch (Throwable t) { _logger.error("Error during tag initialization", t); throw new JspException("Error during tag initialization ", t); } }
@Override public int doStartTag() throws JspException { try { Set<String> groupCodes = this.getAllowedGroups(); this.pageContext.setAttribute(this.getVar(), groupCodes); return super.doStartTag(); } catch (Throwable t) { _logger.error("Error during tag initialization", t); throw new JspException("Error during tag initialization ", t); } }
@Override public int doStartTag() throws JspException { try { String currentCounter = this.getCurrentIndex(); this.pageContext.getOut().print(currentCounter); } catch (Throwable t) { _logger.error("error creating (or modifying) counter", t); //ApsSystemUtils.logThrowable(t, this, "doStartTag", "error creating (or modifying) counter"); throw new JspException("error creating (or modifying) counter", t); } return super.doStartTag(); }
@Override public int doStartTag() throws JspException { try { String currentCounter = this.getCurrentIndex(); this.pageContext.getOut().print(currentCounter); } catch (Throwable t) { ApsSystemUtils.logThrowable(t, this, "doStartTag", "error creating (or modifying) counter"); throw new JspException("error creating (or modifying) counter", t); } return super.doStartTag(); }
/** * <p>Checks that the tag has been used as a direct child of a <code>ConstructPreset</code> tag * and calls its <code>addToken</code> method with the <code>key</code> and <code>value</code> * attributes that have been provided.</p> * * @throws JspException If the parent of the tag is not a <code>ConstructPreset</code> tag. */ @Override public int doStartTag() throws JspException { Tag parent = getParent(); if (parent != null && parent instanceof ConstructPreset) { ConstructPreset preset = (ConstructPreset) parent; preset.addToken(key, value); } else { throw new JspException("PresetToken tag must be child of ConstructPreset tag"); } return super.doStartTag(); } }
@Override public int doStartTag() throws JspException { try { boolean isAcceptedMimeType = this.isAcceptedMimeType(); if (!isAcceptedMimeType) { this.setMimeType(ContentNegotiationTag.DEFAULT_MIMETYPE); } } catch (Throwable t) { ApsSystemUtils.logThrowable(t, this, "doStartTag"); throw new JspException("Error during tag initialization ", t); } return super.doStartTag(); }
/** * <p>Checks that the tag has been used as a direct child of a <code>ConstructPreset</code> tag * and calls its <code>addToken</code> method with the <code>key</code> and <code>value</code> * attributes that have been provided.</p> * * @throws JspException If the parent of the tag is not a <code>ConstructPreset</code> tag. */ @Override public int doStartTag() throws JspException { Tag parent = getParent(); if (parent != null && parent instanceof ConstructPreset) { ConstructPreset preset = (ConstructPreset) parent; preset.addToken(key, value); } else { throw new JspException("PresetToken tag must be child of ConstructPreset tag"); } return super.doStartTag(); } }
@Override public int doStartTag() throws JspException { Invocation invocation = InvocationUtils.getCurrentThreadInvocation(); if (invocation != null) { String msg = invocation.getFlash().get(key); if (logger.isDebugEnabled()) { logger.debug("getFlashMessage: " + key + "=" + msg); } if (msg != null) { try { if (StringUtils.isNotEmpty(prefix)) { pageContext.getOut().print(prefix); } pageContext.getOut().print(msg); if (StringUtils.isNotEmpty(suffix)) { pageContext.getOut().print(suffix); } } catch (IOException e) { throw new JspException("", e); } } } return super.doStartTag(); } }
@Override public int doStartTag() throws JspException { IPageManager pageManager = (IPageManager) ApsWebApplicationUtils.getBean(SystemConstants.PAGE_MANAGER, this.pageContext); try { List<IPage> pages = pageManager.getOnlineWidgetUtilizers(this.getWidgetTypeCode()); if (StringUtils.isNotBlank(this.getFilterParamName()) && StringUtils.isNotBlank(this.getFilterParamValue())) { pages = this.filterByConfigParamValue(pages); } if (this.isListResult()) { this.pageContext.setAttribute(this.getVar(), pages); } else if (null != pages && pages.size() > 0) { this.pageContext.setAttribute(this.getVar(), pages.get(0)); } } catch (Throwable t) { _logger.error("Error in doStartTag", t); // ApsSystemUtils.logThrowable(t, this, "doStartTag"); throw new JspException("Error in doStartTag", t); } return super.doStartTag(); }
@Override public int doStartTag() throws JspException { IPageManager pageManager = (IPageManager) ApsWebApplicationUtils.getBean(SystemConstants.PAGE_MANAGER, this.pageContext); try { List<IPage> pages = pageManager.getWidgetUtilizers(this.getWidgetTypeCode()); if (StringUtils.isNotBlank(this.getFilterParamName()) && StringUtils.isNotBlank(this.getFilterParamValue())) { pages = this.filterByConfigParamValue(pages); } if (this.isListResult()) { this.pageContext.setAttribute(this.getVar(), pages); } else if (null != pages && pages.size() > 0) { this.pageContext.setAttribute(this.getVar(), pages.get(0)); } } catch (Throwable t) { ApsSystemUtils.logThrowable(t, this, "doStartTag"); throw new JspException("Errore tag", t); } return super.doStartTag(); }
@Override public int doStartTag() throws JspException { ServletRequest request = this.pageContext.getRequest(); RequestContext reqCtx = (RequestContext) request.getAttribute(RequestContext.REQCTX); ICategoryManager catManager = (ICategoryManager) ApsWebApplicationUtils.getBean(SystemConstants.CATEGORY_MANAGER, this.pageContext); try { List<SelectItem> categories = new ArrayList<SelectItem>(); Category root = (null != this.getRoot()) ? catManager.getCategory(this.getRoot()) : null; if (null == root) { root = catManager.getRoot(); } Lang currentLang = (Lang) reqCtx.getExtraParam(SystemConstants.EXTRAPAR_CURRENT_LANG); String langCode = currentLang.getCode(); String reqTitStyle = this.getTitleStyle(); List<String> allowedStyles = Arrays.asList(ALLOWED_TITLE_TYPES); String titleStyle = (null != reqTitStyle && (allowedStyles.contains(reqTitStyle))) ? reqTitStyle : null; this.addSmallCategory(categories, root, langCode, titleStyle, catManager); this.pageContext.setAttribute(this.getVar(), categories); } catch (Throwable t) { _logger.error("Error starting tag", t); throw new JspException("Error starting tag", t); } return super.doStartTag(); }
/** * Default processing of the start tag, returning SKIP_BODY. * * @return SKIP_BODY * @throws javax.servlet.jsp.JspException if an error occurs while processing this tag * @see javax.servlet.jsp.tagext.Tag#doStartTag() */ public int doStartTag() throws JspException { Map authz = new AuthZMap(getAuthzFacade(), getPrefix(), evaluateQualifier()); pageContext.setAttribute(getVar(), authz, getScope()); return super.doStartTag(); }
@Override public int doStartTag() throws JspException { ServletRequest request = this.pageContext.getRequest(); RequestContext reqCtx = (RequestContext) request.getAttribute(RequestContext.REQCTX); ICategoryManager catManager = (ICategoryManager) ApsWebApplicationUtils.getBean(SystemConstants.CATEGORY_MANAGER, this.pageContext); try { List<SelectItem> categories = new ArrayList<SelectItem>(); Category root = (null != this.getRoot() && null != catManager.getCategory(this.getRoot())) ? (Category) catManager.getNode(this.getRoot()) : (Category) catManager.getRoot(); Lang currentLang = (Lang) reqCtx.getExtraParam(SystemConstants.EXTRAPAR_CURRENT_LANG); String langCode = currentLang.getCode(); String reqTitStyle = this.getTitleStyle(); String titleStyle = (null != reqTitStyle && (reqTitStyle.equals(TITLE_TYPE_DEFAULT) || reqTitStyle.equals(TITLE_TYPE_FULL) || reqTitStyle.equals(TITLE_TYPE_PRETTY_FULL))) ? reqTitStyle : null; this.addSmallCategory(categories, root, langCode, true, titleStyle); this.pageContext.setAttribute(this.getVar(), categories); } catch (Throwable t) { ApsSystemUtils.logThrowable(t, this, "doStartTag"); throw new JspException("Errore inizializzazione tag", t); } return super.doStartTag(); }
/** * @see javax.servlet.jsp.tagext.TagSupport#doStartTag() */ @Override public int doStartTag() throws JspException { super.doStartTag(); final List<RenderableAccountingLineContainer> containers = generateContainersForAllLines(); group = groupDefinition.createAccountingLineGroup(getDocument(), containers, collectionPropertyName, collectionItemPropertyName, getForm().getDisplayedErrors(), getForm().getDisplayedWarnings(), getForm().getDisplayedInfo(), getForm().getDocumentActions().containsKey(KNSConstants.KUALI_ACTION_CAN_EDIT)); group.updateDeletabilityOfAllLines(); if (getParent() instanceof AccountingLinesTag) { ((AccountingLinesTag)getParent()).addGroupToRender(group); resetTag(); } return Tag.SKIP_BODY; }