/** * 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(); }
/** * Release the tag's resources and reset the values. */ public void release() { super.release(); // reset the originals originalName = null; originalProperty = null; }
/** * Complete the processing of the tag. The nested tags here will restore * all the original value for the tag itself and the nesting context. * @return int to describe the next step for the JSP processor * @throws JspException for the bad things JSP's do */ public int doEndTag() throws JspException { // do the super's ending part int i = super.doEndTag(); // reset the properties setName(originalName); setProperty(originalProperty); // continue return i; }
/** * Generate the required input tag. * [Indexed property since Struts 1.1] * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { String radioTag = renderRadioElement(serverValue(), currentValue()); TagUtils.getInstance().write(pageContext, radioTag); this.text = null; return (EVAL_BODY_TAG); }
setIdName(string); setName(string); setProperty(string); setValue(string);
/** * Process the start tag. * * @exception JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return(super.doStartTag()); }
/** * @see org.apache.struts.taglib.html.RadioTag#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; }
/** * Renders an HTML <input type="radio"> element. * @param serverValue The data to be used in the tag's <code>value</code> * attribute and sent to the server when the form is submitted. * @param checkedValue If the serverValue equals this value the radio button * will be checked. * @return A radio input element. * @throws JspException * @since Struts 1.1 */ protected String renderRadioElement(String serverValue, String checkedValue) throws JspException { StringBuffer results = new StringBuffer("<input type=\"radio\""); prepareAttribute(results, "name", prepareName()); prepareAttribute(results, "accesskey", getAccesskey()); prepareAttribute(results, "tabindex", getTabindex()); prepareAttribute(results, "value", TagUtils.getInstance().filter(serverValue)); if (serverValue.equals(checkedValue)) { results.append(" checked=\"checked\""); } results.append(prepareEventHandlers()); results.append(prepareStyles()); prepareOtherAttributes(results); results.append(getElementClose()); return results.toString(); }
/** * Process the start tag. * * @throws JspException if a JSP exception has occurred */ public int doStartTag() throws JspException { evaluateExpressions(); return (super.doStartTag()); }
super.release(); setAccesskeyExpr(null); setAltExpr(null);
super.release(); setAccesskeyExpr(null); setAltExpr(null);