net.ontopia.topicmaps.webed.taglibs.form
Class FormTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by net.ontopia.topicmaps.webed.taglibs.form.FormTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class FormTag
extends javax.servlet.jsp.tagext.BodyTagSupport

INTERNAL: Custom tag that represents an (HTML) input form holding different elements for modification of topic map object values.

See Also:
Serialized Form

Nested Class Summary
static class FormTag.ValidationRule
          INTERNAL: Internal class encapsulating validation rules
 
Field Summary
protected  String action_uri
          If a action URI is specified directly the default process servlet ACTION is overwritten.
protected  String actiongroup
          The action group this form uses, important for the contained input fields and buttons.
protected  String enctype
           
protected  String focus
          The name of the field to receive focus, if any.
protected  String idattr
          The id of the tag.
protected  String klass
           
protected  String lockVarname
          (Optional) Name of variable which should be tried to lock, because of the modifications that may be involved in this form.
protected static String NAME
          The attribute key under which the associated bean giving access to this form is stored.
protected  Boolean nested
           
protected  String readonly
          State of the form that specifies whether it is read-only or not.
static String REQUEST_ID_ATTRIBUTE_NAME
           
protected  String requestId
           
protected  String target
          If target is specified it will override the default TARGET.
protected static String TEMPLATE_FILE
          The default location where the velocity template can be retrieved from.
 
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
FormTag()
           
 
Method Summary
 int doAfterBody()
          Renders the input form element with it's content.
 int doStartTag()
           
 String getActiongroup()
           
 void release()
          Releases any acquired resources.
 void setActiongroup(String actiongroup)
           
 void setActionURI(String action_uri)
           
 void setClass(String klass)
          Sets the class attribute of the tag.
 void setEnctype(String enctype)
           
 void setId(String idattr)
           
 void setLock(String lock_varname)
           
 void setNested(String nested)
           
protected  void setOutputSubmitFunc(boolean b)
           
 void setReadonly(String readonly)
           
 void setTarget(String target)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, 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.Tag
getParent, setPageContext, setParent
 

Field Detail

TEMPLATE_FILE

protected static final String TEMPLATE_FILE
The default location where the velocity template can be retrieved from.

See Also:
Constant Field Values

NAME

protected static final String NAME
The attribute key under which the associated bean giving access to this form is stored.

See Also:
Constant Field Values

idattr

protected String idattr
The id of the tag. This value will be used as the value of an ID attribute in the generated output.


klass

protected String klass

readonly

protected String readonly
State of the form that specifies whether it is read-only or not.


actiongroup

protected String actiongroup
The action group this form uses, important for the contained input fields and buttons.


lockVarname

protected String lockVarname
(Optional) Name of variable which should be tried to lock, because of the modifications that may be involved in this form.


nested

protected Boolean nested

action_uri

protected String action_uri
If a action URI is specified directly the default process servlet ACTION is overwritten.

See Also:
Constants.PROCESS_SERVLET

target

protected String target
If target is specified it will override the default TARGET.


focus

protected String focus
The name of the field to receive focus, if any.


enctype

protected String enctype

requestId

protected String requestId

REQUEST_ID_ATTRIBUTE_NAME

public static final String REQUEST_ID_ATTRIBUTE_NAME
See Also:
Constant Field Values
Constructor Detail

FormTag

public FormTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Renders the input form element with it's content.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

release

public void release()
Releases any acquired resources.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport

setId

public void setId(String idattr)
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport

setReadonly

public void setReadonly(String readonly)

setClass

public void setClass(String klass)
Sets the class attribute of the tag. This value will be used as the value of the 'class' attribute in the generated output.


setActiongroup

public void setActiongroup(String actiongroup)

getActiongroup

public String getActiongroup()

setActionURI

public void setActionURI(String action_uri)

setTarget

public void setTarget(String target)

setLock

public void setLock(String lock_varname)

setNested

public void setNested(String nested)

setEnctype

public void setEnctype(String enctype)

setOutputSubmitFunc

protected void setOutputSubmitFunc(boolean b)


Copyright © 2000-2012 Ontopia.