java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.aendvari.tethys.tag.html.CopyFormTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class CopyFormTag
- extends javax.servlet.jsp.tagext.TagSupport
Implementation class for the "copyForm" tag.
The following changes need to be made to the form that this tag
is being used within:
-
You must add the javascript "satyrCopyForm()" to the onSubmit
event of the form. If you have another function there already, add this on
first, then any other calls you want/require.
-
If copying more than one form (using this tag more than once within a form)
then you must add a "satyrCopyForm()" function for each copied form.
function satyrCopyForm(targetFormObj, sourceFormName)
- targetFormObj - simply pass in "this" for the form this tag is within.
- sourceFormName - the name of the form to copy data from.
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourceForm
protected java.lang.String sourceForm
- The name of the source form to copy from.
CopyFormTag
public CopyFormTag()
getSourceForm
public java.lang.String getSourceForm()
setSourceForm
public void setSourceForm(java.lang.String name)
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspTagException
- Description copied from class:
javax.servlet.jsp.tagext.TagSupport
- Default processing of the end tag returning EVAL_PAGE.
createCopyFormJavaScript
private java.lang.String createCopyFormJavaScript()