Dive into Oracle ADF

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

Search blog with Google:
 

Search BC4J JavaDoc:
 

June 2006
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  
May   Jul

Get Firefox!

Friday, June 23, 2006

I've posted a quick writeup with a pointer to some interesting code in the SRDemo sample application that shows how to dynamically assign named bind variable default values. It might come in handy for you, but I ran out of time to properly describe it in the developer's guide.


2:34:56 PM    



I've added example number 71 to my examples page, illustrating how to to implement an editable ADF Faces table containing a dropdown list (selectOneChoice) control whose set of available choices is different per-row, based on some value of an attribute in each row.

In the process, the example also illustrates some other useful techniques:

  • A backing bean trick to invoke a method with a single argument from an EL expression in the page.
  • Use of the QUERY_MODE_SCAN_VIEW_ROWS query mode for the list of values view object to query all of the choices (for all departments) and then perform in-memory filtering on that rowset to return only the employees for a particular department as needed without ever re-visiting the database.

And last but not least, the example is setup to allow you as the developer considering implementing this idea, to experiment with the difference between using an entity-based view object and a read-only view object for your list of values query. See section 7.9 Summary of Difference Between Entity-Based View Objects and Read-Only View Objects in the ADF Developer's Guide for Forms/4GL Developers for more information on this topic.


11:52:43 AM    


© Copyright 2008 Steve Muench.