/** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); }
/** * Release the tag's resources and reset the values. */ public void release() { super.release(); // reset the originals originalName = null; originalProperty = null; }
/** * Generate the required input tag. * Support for indexed since Struts 1.1 * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { TagUtils.getInstance().write(pageContext, this.renderTextareaElement()); return (EVAL_BODY_TAG); }
/** * @see org.apache.struts.taglib.html.BaseInputTag#doEndTag() */ @Override public int doEndTag() throws JspException { int returnVal = super.doEndTag(); if (!getDisabled() && !getReadonly()) { String name = prepareName(); if (StringUtils.isNotBlank(name)) { ActionForm form = WebUtils.getKualiForm(pageContext); if(form!=null && form instanceof PojoForm) { ((PojoForm) form).registerEditableProperty(name); } } } return returnVal; } }
/** * Generate an HTML <textarea> tag. * @throws JspException * @since Struts 1.1 */ protected String renderTextareaElement() throws JspException { StringBuffer results = new StringBuffer("<textarea"); prepareAttribute(results, "name", prepareName()); prepareAttribute(results, "accesskey", getAccesskey()); prepareAttribute(results, "tabindex", getTabindex()); prepareAttribute(results, "cols", getCols()); prepareAttribute(results, "rows", getRows()); results.append(prepareEventHandlers()); results.append(prepareStyles()); prepareOtherAttributes(results); results.append(">"); results.append(this.renderData()); results.append("</textarea>"); return results.toString(); }
return new TextareaTag();
/** * Process the start tag. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return(super.doStartTag()); }
super.release(); setAccesskeyExpr(null); setAltExpr(null);
/** * Overriding method of the heart of the matter. Gets the relative property * and leaves the rest up to the original tag implementation. Sweet. * @return int JSP continuation directive. * This is in the hands of the super class. */ public int doStartTag() throws JspException { // get the original properties originalName = getName(); originalProperty = getProperty(); // request HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); // set the properties NestedPropertyHelper.setNestedProperties(request, this); // let the super do it's thing return super.doStartTag(); }
super.release(); setAccesskeyExpr(null); setAltExpr(null);
/** * Process the start of this tag. * * @exception JspException if a JSP exception has occurred * @see org.hdiv.dataComposer.IDataComposer#composeFormField(String, String, boolean, String) */ @Override public int doStartTag() throws JspException { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); IDataComposer dataComposer = HDIVUtil.getRequestContext(request).getDataComposer(); // this property is editable and we must check it if (dataComposer != null) { dataComposer.composeFormField(prepareName(), renderData(), !getDisabled() && !getReadonly(), "textarea"); } return super.doStartTag(); }