The team added some convenience API's in 11g to make common coding use cases simpler. One of the more common things in backing bean code is to access the current ADF binding container. One convenient way I liked to use in the past, leveraging my favorite EL helper class, was to write a one-liner like this:
BindingContainer bc = (BindingContainer)EL.get("#{bindings}");
However, we've improved on this in 11g by making it possible to write the following one-liner:
BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
This has the benefits that it doesn't require parsing EL and doesn't require an additional cast.
12:57:02 PM
|