By Shay Shmeltzer-Oracle on Jul 31, 2009
This demo started from a simple request on the OTN forum asking how would you go about creating a JSF page that reads and writes a file content.
The quick answer I gave was that you can do this with a simple Java class that you expose as a datacontrol. But then I started thinking there will be some more tricky parts that you'll need to do in order to get the UI and binding to work exactly as you would like. The trick is to merge the result of one operation to be the input for the other operation. I played around with the solution I provided and decided to record this since there are a few steps here that will be useful to refer people to in the future.
The "Tricky Parts" that demo shows are:
1. Creating a data control from a simple Java class
2. Binding with ADF Parameter Form to invoke methods
3. Setting the value for method's parameters using the binding tab
4. Creating a backing bean for a JSF page
5. Modifying a default ADF method in a backing bean
5. Accessing an ADF binding control value in your backing bean
6. Binding an existing JSF components to a backing bean
7. Deleting a component from a JSF page without deleting it's binding
Here is the demo:
I hope this helps.
(And sorry that I got a phone call and an IM while recording :-) )
Note - some people requested to see the actual code - you can find the completed workspace here.