在ADF移动应用程序中验证用户名和密码
问题描述:
我正在adf移动应用程序中开发一个简单的登录页面.以下是当前登录(amx)页面中的代码段.
I am developing a simple login page in adf mobile application. following is the piece of code in login (amx) page right now.
<amx:panelGroupLayout id="panelGroupLayout2">
<amx:inputText value="#{viewcontrollerBundle.USER_NAME}"
label="#{viewcontrollerBundle.USER_NAME}"
id="UserName"
showRequired="true"
required="true"/>
<amx:inputText
id="inputText2"
required="true"
showRequired="true"
secret="true" label="#{viewcontrollerBundle.PASSWORD}"/>
</amx:panelGroupLayout>
用户在文本字段中输入用户名和密码后,如何在用户单击登录按钮时获取值?
Once the user enters the username and password in the text fields, how do I fetch the values while the user hits on the log in button?
任何帮助将不胜感激.谢谢.
Any help is greatly appreciated. Thanks.
答
为什么不尝试对登录部分使用ADF身份验证?您可以在此处中查看这些步骤.之后,您可以使用#{securityContext.userName}访问用户名.
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.