Update/Insert With ADF Web Service Data Control

Posted by shay.shmeltzer on Oracle Blogs See other posts from Oracle Blogs or by shay.shmeltzer
Published on Fri, 14 May 2010 13:17:23 -0800 Indexed on 2010/05/14 21:45 UTC
Read the original article Hit count: 451

Filed under:
|
|

The Web service data control (WSDC) in ADF is a powerful feature that allows you to easily build a UI on top of WS interfaces exposed by other systems.

However when you drag a WSDC to a page you usually get a set of output components where the data is shown. So how would you actually do an update operation on those values?
The answer is that you need a call to another method in your WSDC that does the update - but what if you want to pass to it the actual values that you get from the get method you invoked before?

Here is a demo showing how to do that:

The two tricks that are shown here are:
Changing the properties of items in the DC to be updateable - this gives you inputText fields instead of outputText fields.
And passing the currentRow.dataProvider to the update method (and choosing the right iterator for this).

© Oracle Blogs or respective owner

Related posts about Web Service

Related posts about binding