Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 11/3/2008; 4:16:55 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

October 2008
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Sep   Nov

Get Firefox!

Wednesday, October 15, 2008

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    



© Copyright 2008 Steve Muench.