How to get the loggedin Username from the Security context in AMX page and in the Managed bean in ADF Mobile application.

When we use the BasicAuth option for the Login page in ADF Mobile and when the User logged-in to the Mobile application –

To displayed the logged-in user in the AMX page –

<amx:outputText value=” #{securityContext.userName}” id=”ot1″ />

To get the logged-in user in the Managed Bean –

String username = (String)AdfmfJavaUtilities.evaluateELExpression(“#{securityContext.userName}”);

This entry was posted in ADF Mobile and tagged , , , . Bookmark the permalink.

Leave a comment