Class CmsJspTagEnableListAdd

java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.opencms.jsp.CmsJspTagEnableListAdd
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class CmsJspTagEnableListAdd extends javax.servlet.jsp.tagext.SimpleTagSupport
Generates a special HTML element which enables the 'create list element' dialog for a set of types when used in a formatter.
  • Constructor Details

  • Method Details

    • doTag

      public void doTag() throws IOException
      Specified by:
      doTag in interface javax.servlet.jsp.tagext.SimpleTag
      Overrides:
      doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
      Throws:
      IOException
      See Also:
      • SimpleTagSupport.doTag()
    • setPostCreateHandler

      public void setPostCreateHandler(String postCreateHandler)
      Sets the post-create handler to use after creating new elements.
      Parameters:
      postCreateHandler - the post-create handler
    • setTypes

      public void setTypes(Object typesObj) throws javax.servlet.jsp.JspException
      Sets the types to offer to create.
      Parameters:
      typesObj - either a string containing type names separated by commas, or a collection of objects whose toString() methods return resource type names.
      Throws:
      javax.servlet.jsp.JspException - if something goes wrong
    • setUploadFolder

      public void setUploadFolder(String uploadFolder)
      Sets the upload folder.
      Parameters:
      uploadFolder - the upload folder