it.eng.spago.workflow.worklist.tags
Class FormTag

java.lang.Object
  extended by TagSupport
      extended by it.eng.spago.workflow.worklist.tags.FormTag

public class FormTag
extends TagSupport

Author:
zoppello Tags to generate a HTML form described in file forms.xml This tags generate HMTL code conforming to Italian laws about Web Accessibility Guidelines

Constructor Summary
FormTag()
          Consructor
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 java.lang.String getAction()
           
 java.lang.String getContextPath()
           
 SourceBean getFormDescriptor()
           
 java.lang.String getFormIdentifier()
           
 java.lang.StringBuffer getHtmlStream()
           
 HttpServletRequest getHttpRequest()
           
 HttpServletResponse getHttpResponse()
           
 java.lang.String getLayout()
           
 java.lang.String getMethod()
           
protected  void makeCheckBoxField(SourceBean field, int indexInFieldSet)
          Produce the html code that generate a checkbox field
protected  void makeField(SourceBean field, int indexInFieldSet)
          Produce the html code that generate a single field
protected  void makeFieldSet(SourceBean fieldSetSourceBean)
          Produce the html code that generate the field set
protected  void makeForm()
          Creates a form into the jsp page.
protected  void makeHiddenField(SourceBean field, int indexInFieldSet)
          Produce the html code that generate a hidden field
protected  void makeRadioField(SourceBean field)
          Produce the html code that generate a radio field
protected  void makeSelectField(SourceBean field, int indexInFieldSet)
          Produce the html code that generate a select field
protected  void makeSubmitButtons()
          Produce the html code that generate the submits button
protected  void makeTextField(SourceBean field, int indexInFieldSet)
          Produce the html code that generate a text field
 void setAction(java.lang.String action)
           
 void setContextPath(java.lang.String contextPath)
           
 void setFormDescriptor(SourceBean formDescriptor)
           
 void setFormIdentifier(java.lang.String formIdentifier)
           
 void setHtmlStream(java.lang.StringBuffer htmlStream)
           
 void setHttpRequest(HttpServletRequest httpRequest)
           
 void setHttpResponse(HttpServletResponse httpResponse)
           
 void setLayout(java.lang.String layout)
           
 void setMethod(java.lang.String method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormTag

public FormTag()
Consructor

Method Detail

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

makeForm

protected void makeForm()
                 throws JspException
Creates a form into the jsp page.

Throws:
JspException - If any exception occurs.

makeSubmitButtons

protected void makeSubmitButtons()
Produce the html code that generate the submits button


makeFieldSet

protected void makeFieldSet(SourceBean fieldSetSourceBean)
                     throws JspException
Produce the html code that generate the field set

Throws:
JspException

makeField

protected void makeField(SourceBean field,
                         int indexInFieldSet)
                  throws JspException
Produce the html code that generate a single field

Throws:
JspException

makeTextField

protected void makeTextField(SourceBean field,
                             int indexInFieldSet)
                      throws JspException
Produce the html code that generate a text field

Throws:
JspException

makeHiddenField

protected void makeHiddenField(SourceBean field,
                               int indexInFieldSet)
                        throws JspException
Produce the html code that generate a hidden field

Throws:
JspException

makeRadioField

protected void makeRadioField(SourceBean field)
                       throws JspException
Produce the html code that generate a radio field

Throws:
JspException

makeSelectField

protected void makeSelectField(SourceBean field,
                               int indexInFieldSet)
                        throws JspException
Produce the html code that generate a select field

Throws:
JspException

makeCheckBoxField

protected void makeCheckBoxField(SourceBean field,
                                 int indexInFieldSet)
                          throws JspException
Produce the html code that generate a checkbox field

Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Throws:
JspException
See Also:
javax.servlet.jsp.tagext.Tag#doEndTag()

getAction

public java.lang.String getAction()

setAction

public void setAction(java.lang.String action)

getContextPath

public java.lang.String getContextPath()

setContextPath

public void setContextPath(java.lang.String contextPath)

getFormDescriptor

public SourceBean getFormDescriptor()

setFormDescriptor

public void setFormDescriptor(SourceBean formDescriptor)

getFormIdentifier

public java.lang.String getFormIdentifier()

setFormIdentifier

public void setFormIdentifier(java.lang.String formIdentifier)

getHtmlStream

public java.lang.StringBuffer getHtmlStream()

setHtmlStream

public void setHtmlStream(java.lang.StringBuffer htmlStream)

getHttpRequest

public HttpServletRequest getHttpRequest()

setHttpRequest

public void setHttpRequest(HttpServletRequest httpRequest)

getHttpResponse

public HttpServletResponse getHttpResponse()

setHttpResponse

public void setHttpResponse(HttpServletResponse httpResponse)

getLayout

public java.lang.String getLayout()

setLayout

public void setLayout(java.lang.String layout)

getMethod

public java.lang.String getMethod()

setMethod

public void setMethod(java.lang.String method)