2 Replies Latest reply on Jun 5, 2007 4:25 PM by Marcos Donato

    why jboss is not calling release() in taglibs

    chaitanya Novice

      i have written a taglib class ;jboss is not calling release() (this method is in Tag class) which is a life cycle method in taglibs;

      in other servers this method is calling implicitly?why jboss is not calling?

      public class TagLib1 extends BodyTagSupport
      {

      public TagLib1()
      {
      name = null;
      id = null;
      border = null;
      cellpadding = null;
      cellspacing = null;
      width = null;
      addButtonName = null;
      frmName = null;
      NL = "\n";
      elementsData = new StringBuffer();
      }


      public int doAfterBody()
      throws JspException
      {
      return 0;
      }

      public int doEndTag()
      throws JspException
      {
      blah ..blah..
      }

      public int doStartTag()
      throws JspException
      {
      blah ..blah..
      return 2;
      }

      public String getAddButtonName()
      {
      return addButtonName;
      }

      public String getBorder()
      {
      return border;
      }

      public String getCellpadding()
      {
      return cellpadding;
      }

      public String getCellspacing()
      {
      return cellspacing;
      }

      public StringBuffer getElementsData()
      {
      return elementsData;
      }

      public String getFrmName()
      {
      return frmName;
      }

      public String getId()
      {
      return id;
      }

      public String getName()
      {
      return name;
      }

      public String getWidth()
      {
      return width;
      }

      public void release()
      {
      name = null;
      id = null;
      border = null;
      cellpadding = null;
      cellspacing = null;
      width = null;
      addButtonName = null;
      elementsData = new StringBuffer();
      }

      public void setAddButtonName(String addButtonName)
      {
      this.addButtonName = addButtonName;
      }

      public void setBorder(String border)
      {
      this.border = border;
      }

      public void setCellpadding(String cellpadding)
      {
      this.cellpadding = cellpadding;
      }

      public void setCellspacing(String cellspacing)
      {
      this.cellspacing = cellspacing;
      }

      public void setElementsData(StringBuffer elementsData)
      {
      this.elementsData = elementsData;
      }

      public void setFrmName(String frmName)
      {
      this.frmName = frmName;
      }

      public void setId(String id)
      {
      this.id = id;
      }

      public void setName(String name)
      {
      this.name = name;
      }

      public void setWidth(String width)
      {
      this.width = width;
      }

      private String name;
      private String id;
      private String border;
      private String cellpadding;
      private String cellspacing;
      private String width;
      private String addButtonName;
      private String frmName;
      private String NL;
      private StringBuffer elementsData;
      }