/** * 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; }
/** * 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; }
/** * 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(); }
setName(string); setProperty(string); setValue(string);
public Tag processWidget( Tag tag, String elementName, Map<String, String> attributes, MetawidgetTag metawidget ) { String name = attributes.get( NAME ); String pathPrefix = metawidget.getPathPrefix(); if ( pathPrefix != null ) { name = pathPrefix + name; } if ( tag instanceof BaseInputTag ) { ( (BaseInputTag) tag ).setProperty( name ); } else if ( tag instanceof SelectTag ) { ( (SelectTag) tag ).setProperty( name ); } else if ( tag instanceof CheckboxTag ) { ( (CheckboxTag) tag ).setProperty( name ); } return tag; } }
/** * @see org.apache.struts.taglib.html.CheckboxTag#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; } }
return new CheckboxTag(); return new CheckboxTag();
/** * 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);
public int doStartTag() throws JspException { int ret = super.doStartTag(); StringBuffer hidden = new StringBuffer(); hidden.append("<input"); prepareAttribute(hidden, "type", "hidden"); prepareAttribute(hidden, "name", Constants.CHECKBOX_NAME + prepareName()); prepareAttribute(hidden, "value", Boolean.TRUE); hidden.append(getElementClose()); TagUtils.getInstance().write(super.pageContext, hidden.toString()); return ret; } }
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(), value, true, null); } return super.doStartTag(); }