static <T> ComponentAttribute.Builder<T> |
ComponentAttribute.builder(javax.faces.component.UIComponent component,
String attributeName,
Class<T> type) |
Creates a builder for a component attribute with the specified name and expected type.
|
static <T> ComponentAttribute.Builder<List<T>> |
ComponentAttribute.builderForList(javax.faces.component.UIComponent component,
String attributeName,
Class<T> type) |
Creates a builder for a component attribute that is expected to be a list of a specific type.
|
ComponentAttribute.Builder<T> |
ComponentAttribute.Builder.initialValue(Supplier<? extends T> initialValue) |
Sets the supplier for the initial value of the attribute.
|
ComponentAttribute.Builder<T> |
ComponentAttribute.Builder.throwOnMethodNotFound() |
Throws when invoking a method expression if no compatible method is found for the attribute.
|
ComponentAttribute.Builder<T> |
ComponentAttribute.Builder.throwOnMethodNotFound(boolean throwOnMethodNotFound) |
Sets whether to throw when invoking a method expression if no compatible method is found for the attribute.
|
ComponentAttribute.Builder<T> |
ComponentAttribute.Builder.throwOnMissingValue() |
Throws when getting the value of the attribute and no value is present (no value expression and no literal
attribute).
|
ComponentAttribute.Builder<T> |
ComponentAttribute.Builder.throwOnMissingValue(boolean throwOnMissingValue) |
Whether to throw when getting the value of the attribute and no value is present (no value expression and no
literal attribute).
|
ComponentAttribute.Builder<T> |
ComponentAttribute.Builder.throwOnNonNullValue() |
Throws when getting the value of the attribute and the resolved value is null.
|
ComponentAttribute.Builder<T> |
ComponentAttribute.Builder.throwOnNonNullValue(boolean throwOnNullValue) |
Whether to throw when getting the value of the attribute and the resolved value is null.
|
ComponentAttribute.Builder<T> |
ComponentAttribute.Builder.throwOnNonWritableProperty() |
Throws when trying to set a value for the attribute if no value expression is defined or the value expression
does not refer to a writable property (no setter).
|
ComponentAttribute.Builder<T> |
ComponentAttribute.Builder.throwOnNonWritableProperty(boolean throwOnNonWritableProperty) |
Sets whether to throw when trying to set a value for the attribute if no value expression is defined or the
value expression does not refer to a writable property (no setter).
|