Class TestIdTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
de.hybris.platform.b2ctelcoaddon.tags.TestIdTag
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.SimpleTag
public class TestIdTag
extends javax.servlet.jsp.tagext.SimpleTagSupport
Tag that generates a wrapping div with the specified id. The id is suffixed with an incrementing counter for the page
request to ensure that it is unique. The wrapper divs can be turned on and off via a configuration property.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcleanupHtmlId(String text) voiddoTag()protected StringgetCode()protected intgetNextUniqueId(javax.servlet.jsp.PageContext pageContext) voidMethods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Field Details
-
ENABLE_TEST_IDS_PROPERTY
- See Also:
-
TEST_ID_TAG_NEXT
- See Also:
-
-
Constructor Details
-
TestIdTag
public TestIdTag()
-
-
Method Details
-
getCode
-
setCode
-
doTag
- Specified by:
doTagin interfacejavax.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjavax.servlet.jsp.tagext.SimpleTagSupport- Throws:
javax.servlet.jsp.JspExceptionIOException
-
getNextUniqueId
protected int getNextUniqueId(javax.servlet.jsp.PageContext pageContext) -
cleanupHtmlId
-