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!

passing username to VO bind variable

Jon SpadleJun 20 2014 — edited Jun 20 2014

Hi all,

I followed this

http://www.jobinesh.com/2013/02/securing-your-adf-applications-using.html

for setting up an authentication system based on Apache Shiro instead of ADF security. All is fine, I can log in and see restricted pages. Here's the odd thing:

Adding an output text with value securityContext.userName, the currently logged in username is displayed.

However, if I add a VO on the authentication table with a bind variable along the lines of

WHERE username = ?

and bind variable having default value of the expression

adf.context.securityContext.userName

the table is indeed filtered -- but only for the first time of login. Afterwards, the filter/bind variable does not update and displays the authentication table filtered on whatever user I logged in with first.

2 hopefully simple questions:

1. Why is that so?

2. What change is needed for filtering on the currently logged in user?

Thanks,

Jon

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 18 2014
Added on Jun 20 2014
1 comment
393 views