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 TypeMethodDescriptionvoid
doTag()
void
setPostCreateHandler
(String postCreateHandler) Sets the post-create handler to use after creating new elements.void
Sets the types to offer to create.void
setUploadFolder
(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:
doTag
in interfacejavax.servlet.jsp.tagext.SimpleTag
- Overrides:
doTag
in classjavax.servlet.jsp.tagext.SimpleTagSupport
- Throws:
IOException
- See Also:
-
SimpleTagSupport.doTag()
-
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
-