[OmniFaces utilities] The
Callback
represents a collection of serializable callback interfaces. Useful in (mini) visitor and strategy patterns.
In case
you don't know, OmniFaces 2.0 comes with a set of un-serializable callback interfaces useful in
(mini) visitor and strategy patterns.
OmniFaces 2.0 also supports a callback which takes two arguments, but this was removed in OmniFaces 2.1. For the rest
of Callbacks,
OmniFaces 2.1 provides a Serializable version. But, if you need the un- Serializable version then simply rely on OmniFaces 2.0.
Let's see what we have in OmniFaces 2.1 beside OmniFaces 2.0:
Let's see what we have in OmniFaces 2.1 beside OmniFaces 2.0:
· serializable void callback
· serializable callback which returns a value
· serializable callback which takes an argument
· serializable callback which takes one argument and returns
one value
Check out the blog Callback submenu to see several examples of using these interfaces to:
- invoke an operation for each component in the component tree via OmniFaces Components#forEach
- OmniFaces 2.0 - ReadOnlyValueExpression that can be set when the "real" value is not yet available
- OmniFaces 2.1 - ReadOnlyValueExpression that can be set when the "real" value is not yet available
Niciun comentariu :
Trimiteți un comentariu