Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to access the Binding Container in adf Moble Application

Tarek BakrJun 18 2015 — edited Jun 20 2015

Dear All

I am new with ADF mobile Application

I have created a web service that has a method "AuthenticateUser". And I deployed it successfully to WLS.

Then I created a new mobile adf mobile application and I created a web service data control(SOAP/REST)

I created a taskflow and added new view activity "login.amx"

I dragged and dropped the operation "AuthenticateUser" from my data control to the login page as a parameter form.

I run deployed the application to the emulator and it owrks fine and every thing is OK.


Now I have a requirement to access the "AuthenticateUser" Operation from my managed bean.


I tried to implement this method as follow

public String authenicateUser(){

String outputĀ  = "fail";

DCBindingContainer dc = getBindingContainer();

OperationBinding opr = dc.getOperationBinding("AuthenticateUser");

opr.execute();

output = (String)opr.getResult();

return output;

}


Is this code is correct? Is it possible to access the OperationBinding through this way.

Olease correct me.

I run the application and When I pressed the button I faces an error .

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 18 2015
Added on Jun 18 2015
5 comments
389 views