Class FeatureTagDisable

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.ff4j.web.taglib.AbstractFeatureTag
org.ff4j.web.taglib.FeatureTagDisable
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class FeatureTagDisable extends AbstractFeatureTag
Content of enclosing tag will be displayed if feature not enable.

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="mercureDescDisabled">
     <c:if test=${mercureDescDisabled && otherCondition}">
       Your HTML code
     </c:if">
 
Author:
Cedrick LUNVEN
See Also:
  • Constructor Details

    • FeatureTagDisable

      public FeatureTagDisable()
  • Method Details

    • evalWithExecutionContext

      protected boolean evalWithExecutionContext(org.ff4j.FF4j ff4j, jakarta.servlet.jsp.PageContext pageContext, org.ff4j.core.FlippingExecutionContext executionContext)
      Specified by:
      evalWithExecutionContext in class AbstractFeatureTag