Validating Username and Password in ADF mobile application

蹲街弑〆低调 提交于 2020-01-21 14:35:08

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/20768923/validating-username-and-password-in-adf-mobile-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!