java.lang.Object
jakarta.faces.view.facelets.TagHandler
org.omnifaces.taghandler.MethodParam
- All Implemented Interfaces:
FaceletHandler
The <o:methodParam> is a tag handler that can be used to pass a method expression as attribute
into a Facelets tag. By default this is not possible, and the expression that's intended to be a method expression
will be created and made available as a value expression.
This handler wraps a value expression that's actually a method expression by another value expression that returns a method expression that gets the value of first value expression, which as "side-effect" executes the original method expression. This somewhat over-the-top chain of wrapping is done so a method expression can be passed as attribute into a Facelet tag.
- Author:
- Arjan Tijms
-
Field Summary
Fields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
Constructor Details
-
MethodParam
The tag constructor.- Parameters:
config- The tag config.
-
-
Method Details
-
apply
- Throws:
IOException
-