I am developing a simple login page in adf mobile application. following is the piece of code in login (amx) page right now.
Why don't you try using ADF authentication for the login part? You can take a look here for the steps. After that, you can use #{securityContext.userName} to access the username.