Passing Parameters Between Web-Services and JSF Pages

This is another quick demo that shows a common scenario that combines several demos I did in the past.

The scenario – we have two web services, one returns a list of objects, the other allows us to update an object. We want to build a page flow where the first page shows us the list of objects, allows us to select one, and then we can edit that instance in the next page and call the second web service to update our data source.

The demo shows:

How to select a row and save the object value in a pageFlowScope. (using setPropertyListener).

How to create a page that allows me to modify the value of the pageFlowScope object, and how to pass the object as a parameter to the second Web service.

Check it out here:

Comments:

Hi Shay,
I am consuming a web service from my ADF form, but the service in question (which comes from a third party) expects 2 additional HTTP request headers; headerVal1 and headerVal2. Although I can easily add these 2 header fields in the HTTP Analyzer tool (and SoapUI), I cannot figure out how to set these values in jDeveloper. This is currently preventing me from using the web service.
Can you explain how I can do this in ADF?
Thanks,
Darren

Posted by Darren on August 29, 2011 at 01:05 PM PDT #

Hi Shay,
I am very new to ADF. I am developing an app where I have to use login username as a parameter to pass it to a .jsp page where I display the user's profile.
How do I go about doing this. I know you have demos where we can convert a row into a link and by clicking on the link user can see the details of the row. I am trying to use username as parameter to be passed to the detail page. Can you pls let me know, Thanks

Posted by guest on July 18, 2013 at 12:48 PM PDT #

guest - see https://blogs.oracle.com/shay/entry/passing_value_between_pages_to for further question try the OTN JDeveloper discussion forum

Posted by guest on July 18, 2013 at 02:00 PM PDT #

Hi Shay,
Thanks for your reply. I could try and do method call with execute with param and call the profile page. One thing I didn't understand is that when doing edit binding. I see backing_bean and you have selected input_text.value from the list.

In my case I have a login bean method and get_username, set_username parameters. I have to use username as the parameter being passed to the next page. How do I do that. If I select request_scope/login_bean/get_username as binding it doesn't work.
Can you help. Thanks

Posted by guest on July 23, 2013 at 07:33 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today