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 supply managed bean value to VO executeQuery() ?

robliAug 20 2009 — edited Aug 20 2009
New to ADF; have 2 (simple I expect) questions ...

a) I have a managed bean in session scope holding a variable value, which I want to use to set a bind variable in a query belonging to a second page. Rather than build the link in the VO (using different app-modules for the 2 pages) I wanted to use the session bean to simply supply this variable value to the bind. But am not sure how to reference a managed bean from the model-side VO java ?

b) Alternatively I guess, I'd use the bean to actually initiate the VO queries, and supply the bind variable that way, which works for a button press, but I'm not sure where I'd put code to execute at page startup. I've seen samples suggesting adding transient fields to VO's can be used for this, but surely there is a simpler way? Can the AppModule that's used for the second page be used for this?

Many thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2009
Added on Aug 20 2009
4 comments
897 views