Class ListChildrenTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.sling.scripting.jsp.taglib.ListChildrenTag
- All Implemented Interfaces:
Serializable,IterationTag,JspTag,Tag
Tag for listing the children of a Resource. The children will be returned as
an Iterator of Resource objects in the specified variable.
- See Also:
-
Field Summary
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Default processing of the end tag returning EVAL_PAGE.Gets the resource of which to list the children.getVar()Gets the variable name to which to save the list of children.voidsetResource(Resource resource) Sets the resource of which to list the children.voidSets the variable name to which to save the list of children.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
ListChildrenTag
public ListChildrenTag()
-
-
Method Details
-
doEndTag
public int doEndTag()Description copied from class:TagSupportDefault processing of the end tag returning EVAL_PAGE.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Returns:
- EVAL_PAGE
- See Also:
-
getResource
Gets the resource of which to list the children.- Returns:
- the Sling Resource
-
getVar
Gets the variable name to which to save the list of children.- Returns:
- the variable name
-
setResource
Sets the resource of which to list the children.- Parameters:
resource- the Sling Resource
-
setVar
Sets the variable name to which to save the list of children.- Parameters:
var- the variable name
-