Interface TextHandler
- All Superinterfaces:
FaceletHandler
An interface that allows other code to identify FaceletHandlers that may provide text (String) content.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidapply(FaceletContext ctx, UIComponent parent) The default implementation throwsUnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing implementations of this interface.getText()Returns the literal String value of the contained text.getText(FaceletContext ctx) Returns the resolved literal String value of the contained text after evaluating EL.
-
Method Details
-
getText
String getText()Returns the literal String value of the contained text.
- Returns:
- the literal String value of the contained text
-
getText
Returns the resolved literal String value of the contained text after evaluating EL.
- Parameters:
ctx- theFaceletContextfor this view execution- Returns:
- the resolved literal String value of the contained text after evaluating EL
-
apply
The default implementation throws
UnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing implementations of this interface.- Specified by:
applyin interfaceFaceletHandler- Parameters:
ctx- the current FaceletContext instance for this executionparent- the parent UIComponent to operate upon- Throws:
IOException- if unable to loadrelativePath
-