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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JSF - calling service method from constructor of managed bean

453709May 11 2006 — edited May 11 2006
Hi,

I'm working with jdev 10.1.3.0.4 to implement JAZN security and want to create a bean similar to the UserInfo managed bean found in the SRDemoSampleADFBC. When doing this, I don't know how to call the service method I've created on the Application Module (which will find the corresponding id for a given username). Since this is done in the constructor of the managed bean, we cannot use the binding container supplied as a managed property yet. The SRDemo example uses:
SRPublicService svc = (SRPublicService)JSFUtils.resolveExpression("#{data.SRPublicService.dataProvider}");
        _userId = svc.getUserIdForLoggedInUser();
I tried to replicate this; copying the code from the JSFUtils.resolveExpression and using the name of my own AppMod instead of "SRPublicService", but that leads to a null exception. In essence, I cannot find any documentation about which structures can be found in #{data} (or how to put them there) and I do not know another way to access the service method.

Any help would be appreciated,
Andre

Message was edited by:
user450706
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2006
Added on May 11 2006
2 comments
322 views