org.dbforms.taglib
Class DbAssociatedRadioTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.dbforms.taglib.AbstractScriptHandlerTag
              extended by org.dbforms.taglib.AbstractDbBaseHandlerTag
                  extended by org.dbforms.taglib.DbAssociatedRadioTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public class DbAssociatedRadioTag
extends AbstractDbBaseHandlerTag
implements javax.servlet.jsp.tagext.TryCatchFinally

This tag enables the end-user to define a row by selecting the radio-button rendered by this tag

This tag enables the end-user to define a row by selecting the radio-button rendered by this tag

<tagclass>org.dbforms.taglib.DbAssociatedRadioTag</tagclass> <bodycontent>empty</bodycontent>

example: imagine a table customer, which should be listed. the user should be able to delete a customer.

in that case the application developer has to alternatives: to put a "deleteButton" into the body -> this button gets rendered for every row
if the user klicks the button the associated data row gets deleted. the disadvantage of this method is that multiple buttons must be rendered, which takes away lots of space and makes layouting more difficult to put an "associatedRadio" into the body and the "deleteButton" on the footer (or header)
the radio element gets rendered for every row, the deleteButton just once. if the user wants to delete a row, he/she has to select the radioButton (to mark the row he/she wants to be deleted) and then to press the deleteButton.

the more buttons you have the better this method is!!

nota bene: you have to tell the delete (or insert, update...) - button that there is an associated radio button that marks the row the action should be applied to, by defining the "associatedRadio" attribute of that respective button

Author:
Joachim Peer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
DbAssociatedRadioTag()
           
 
Method Summary
 int doEndTag()
          DOCUMENT ME!
 void doFinally()
          DOCUMENT ME!
 String getName()
          DOCUMENT ME!
 void setName(String name)
          DOCUMENT ME!
 
Methods inherited from class org.dbforms.taglib.AbstractDbBaseHandlerTag
customFormat, escapeHTML, getCustomFormatter, getDefaultValue, getEscaper, getEscaperClass, getField, getFieldObject, getFieldValue, getFormattedFieldValue, getFormatter, getFormFieldDefaultValue, getFormFieldName, getFormFieldValue, getLocale, getMaxlength, getParentForm, getPattern, getReadOnlyStyleClass, getStyleClass, hasReadOnlySet, renderOldValueHtmlInputField, renderPatternHtmlInputField, setCustomFormatter, setDefaultValue, setEscaperClass, setField, setFieldName, setMaxlength, setNullFieldValue, setParent, setPattern, setReadOnly, setReadOnlyStyleClass, typicalDefaultValue, writeOutSpecialValues
 
Methods inherited from class org.dbforms.taglib.AbstractScriptHandlerTag
doCatch, getAccessKey, getConfig, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getTabIndex, getTitle, prepareEventHandlers, prepareStyles, setAccessKey, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyleClass, setTabIndex, setTitle
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.TryCatchFinally
doCatch
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext
 

Constructor Detail

DbAssociatedRadioTag

public DbAssociatedRadioTag()
Method Detail

setName

public void setName(String name)
DOCUMENT ME!

Parameters:
name - DOCUMENT ME!

getName

public String getName()
DOCUMENT ME!

Overrides:
getName in class AbstractDbBaseHandlerTag
Returns:
DOCUMENT ME!

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
DOCUMENT ME!

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - DOCUMENT ME!
javax.servlet.jsp.JspException - DOCUMENT ME!

doFinally

public void doFinally()
DOCUMENT ME!

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doFinally in class AbstractDbBaseHandlerTag
See Also:
TryCatchFinally.doFinally()


Copyright © 2002-2006 DbForms. All Rights Reserved.