在ADF移动应用程序中验证用户名和密码 [英] Validating Username and Password in ADF mobile application

查看:140
本文介绍了在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.

这篇关于在ADF移动应用程序中验证用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆