Package org.ff4j.web.taglib
Class FeatureTagEnable
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.ff4j.web.taglib.AbstractFeatureTag
org.ff4j.web.taglib.FeatureTagEnable
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
Taglib to filter display based on
Feature status within FeatureStore.
Sample use
<ff4j:enable featureid="mercure-desc"> here your html code </ff4j:enable@gt; It is also possible to store the result of feature evaluation to be able to use it in a more complex condition:<ff4j:disable featureid="mercure-desc" var="mercureDescEnabled"> <c:if test=${mercureDescEnabled invalid input: '&'invalid input: '&' otherCondition}"> Your HTML code </c:if">
- Author:
- Cedrick LUNVEN
- See Also:
-
Field Summary
Fields inherited from class org.ff4j.web.taglib.AbstractFeatureTag
ERROR_MSG_END, ERROR_MSG_STARTFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanevalWithExecutionContext(FF4j ff4j, jakarta.servlet.jsp.PageContext pageContext, FlippingExecutionContext executionContext) Methods inherited from class org.ff4j.web.taglib.AbstractFeatureTag
displayError, doStartTag, eval, getFeatureid, getFf4jAttributeName, getScope, getVar, isShareHttpSession, release, setFeatureid, setScope, setShareHttpSession, setVarMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
FeatureTagEnable
public FeatureTagEnable()
-
-
Method Details
-
evalWithExecutionContext
protected boolean evalWithExecutionContext(FF4j ff4j, jakarta.servlet.jsp.PageContext pageContext, FlippingExecutionContext executionContext) - Specified by:
evalWithExecutionContextin classAbstractFeatureTag
-