Package org.opencms.jsp
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
Generates a special HTML element which enables the 'create list element' dialog for a set of types when used in a formatter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoTag()voidsetPostCreateHandler(String postCreateHandler) Sets the post-create handler to use after creating new elements.voidSets the types to offer to create.voidsetUploadFolder(String uploadFolder) Sets the upload folder.Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Constructor Details
-
CmsJspTagEnableListAdd
public CmsJspTagEnableListAdd()
-
-
Method Details
-
doTag
- Specified by:
doTagin interfacejavax.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjavax.servlet.jsp.tagext.SimpleTagSupport- Throws:
IOException- See Also:
-
setPostCreateHandler
Sets the post-create handler to use after creating new elements.- Parameters:
postCreateHandler- the post-create handler
-
setTypes
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
Sets the upload folder.- Parameters:
uploadFolder- the upload folder
-