pt.moredata.dataentry.taglibs
Class ShowIfErrorTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bypt.moredata.dataentry.taglibs.AbstractIfTag
              extended bypt.moredata.dataentry.taglibs.DoIfErrorTag
                  extended bypt.moredata.dataentry.taglibs.ShowIfErrorTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
ShowIfNoErrorTag

public class ShowIfErrorTag
extends DoIfErrorTag
implements javax.servlet.jsp.tagext.TryCatchFinally

Tag for showing an error message if DataEntry give a error. Company MoreData

Version:
$Revision: 1.13 $ XXX : Verificar a validade dos parametros, em particular se nao foram usados parametros incompativeis.
Author:
ndorotea
See Also:
Serialized Form

Field Summary
protected  java.lang.String _customErrorMessage
          Menssagem de erro escrita na tag
protected  boolean _showTagBody
          If true the last command executed give an error.
 
Fields inherited from class pt.moredata.dataentry.taglibs.AbstractIfTag
_dataEntry, _out, _session
 
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
ShowIfErrorTag()
           
 
Method Summary
 int doAfterBody()
          Metodo executado em cada iteracao depois de se ter processado o conteudo da tag.
protected  void doBeforeStartTag()
          Codigo executado antes do codigo do metodo doStartTag().
 int doEndTag()
          Processa o fim da tag.
 void doFinally()
          Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag.
protected  boolean includeBodyTag()
          Verifica se o conteudo da tag devera ser incluido ou nao
 void setHeight(java.lang.String height)
          Setter for property height.
 void setNewWindow(java.lang.String newWindow)
          Setter for property newWindow.
 void setTarget(java.lang.String target)
          Setter for property target.
 void setWidth(java.lang.String width)
          Setter for property width.
 void setWindowName(java.lang.String windowName)
          Setter for property windowName.
 
Methods inherited from class pt.moredata.dataentry.taglibs.AbstractIfTag
doCatch, doInitBody, doStartTag, init, setDataEntryId
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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.TryCatchFinally
doCatch
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

_customErrorMessage

protected java.lang.String _customErrorMessage
Menssagem de erro escrita na tag


_showTagBody

protected boolean _showTagBody
If true the last command executed give an error.

Constructor Detail

ShowIfErrorTag

public ShowIfErrorTag()
Method Detail

includeBodyTag

protected boolean includeBodyTag()
Description copied from class: AbstractIfTag
Verifica se o conteudo da tag devera ser incluido ou nao

Overrides:
includeBodyTag in class DoIfErrorTag

doBeforeStartTag

protected void doBeforeStartTag()
                         throws java.io.IOException
Codigo executado antes do codigo do metodo doStartTag().

Overrides:
doBeforeStartTag in class AbstractIfTag
Throws:
java.io.IOException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspTagException
Metodo executado em cada iteracao depois de se ter processado o conteudo da tag.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class AbstractIfTag
Returns:
SKIP_BODY para deixar de processar o conteudo da tag.
Throws:
javax.servlet.jsp.JspTagException - Caso ocorra algum erro a processar a tag.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Processa o fim da tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class AbstractIfTag
Returns:
a accao que deve ser tomada pelo servidor de .jsp apos ler a tag.
Throws:
javax.servlet.jsp.JspTagException

doFinally

public void doFinally()
Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag. This method is invoked even if an exception has occurred in the BODY of the tag, or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody(). This method is not invoked if the Throwable occurs during one of the setter methods. This method should not throw an Exception. This method is intended to maintain per-invocation data integrity and resource management actions.

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doFinally in class AbstractIfTag

setTarget

public void setTarget(java.lang.String target)
Setter for property target.

Parameters:
target - New value of property target.

setNewWindow

public void setNewWindow(java.lang.String newWindow)
Setter for property newWindow.

Parameters:
newWindow - New value of property newWindow.

setWindowName

public void setWindowName(java.lang.String windowName)
Setter for property windowName.

Parameters:
windowName - New value of property windowName.

setWidth

public void setWidth(java.lang.String width)
Setter for property width.

Parameters:
width - New value of property width.

setHeight

public void setHeight(java.lang.String height)
Setter for property height.

Parameters:
height - New value of property height.