Mismatch found in username and password means clear input componet as well.

hi jdev experts,
Using 11.1.1.5.0 - adfbc stack.
my requirement is to simple.
while hitting the button the username and password doesnt match with db means it throw the error. at the same time
compoenets should clear the value. where should i handle this .
am get confused where should i handle to reset the input component ....
beans code.
    public String cb2_action() {
        String returnStr="error";
        if(p_user == null || p_password == null ){
            FacesContext ctx = FacesContext.getCurrentInstance();
            FacesMessage fm =
                new FacesMessage(FacesMessage.SEVERITY_ERROR, "Invalid UserName/Password!", "");
            ctx.addMessage(null, fm);
            return null; 
        else{
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("checkLogin");
        operationBinding.execute();
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
        returnStr= "success";
        System.out.println("returnStr : " + returnStr);
        return returnStr;
amimpl code.
    public String checkLogin(String p_user, String p_password) {
        System.out.println("Parameter Username :" + p_user +
                           "Parameter  Password :" + p_password);
        ApplUsersVOImpl vo = (ApplUsersVOImpl)this.getApplUsers1();
        /*set the bind variable value*/
        vo.setNamedWhereClauseParam("p_user", p_user);
        System.out.println("Am Implementation Username :" + p_user);
        vo.setNamedWhereClauseParam("p_password", p_password);
        System.out.println("Am Implementation Password :" + p_password);
        vo.executeQuery();
       int rowCount = (int)vo.getEstimatedRowCount();
        System.out.println("rowCount :" + rowCount);
        try {
    catch (Exception e) {
            System.out.println("Exception in check login" + e.getStackTrace());
        if (rowCount == 0) {
            throw new JboException("Invalid UserName/Password!");
        return "Welcome" + "User" + p_user.toUpperCase();
    }can any point me.
little more info am not using adf security.

naveeth
thanks for pointing. but it does't works for me.
    public String cb2_action() {
        String returnStr="error";
        if(p_user == null || p_password == null ){
            FacesContext ctx = FacesContext.getCurrentInstance();
            FacesMessage fm =
                new FacesMessage(FacesMessage.SEVERITY_ERROR, "Invalid UserName/Password!", "");
            ctx.addMessage(null, fm);
            return null; 
        else{
        System.out.println("User Logged Succefully");
        BindingContainer bindings = getBindings();
        System.out.println ("Before Login to Bean");
        OperationBinding operationBinding = bindings.getOperationBinding("checkLogin");
        System.out.println ("After Login to Bean");
        operationBinding.execute();
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
        returnStr= "success";
        } else {
            System.out.println("try to reset value"); // it is not going for else part and it is not also printing
            it1.resetValue();
            AdfFacesContext.getCurrentInstance().addPartialTarget(it1);
            it2.resetValue();
            AdfFacesContext.getCurrentInstance().addPartialTarget(it2);
        System.out.println("returnStr : " + returnStr);
        return returnStr;
login popup code in  homepage.jspx
   <af:popup binding="#{HomePage.p1}" id="p1">
              <af:dialog title = "xxxx Login" binding="#{HomePage.d2}"
                         contentWidth="220"
contentHeight="100" id="d2"  modal="true" type="none">
                <af:spacer width="100" height="30" id="s11"/>
                <af:activeImage source="/Images/index.gif" id="ai3"/>
                <af:panelGroupLayout id="pgl16" halign="center"
                                     layout="vertical">
                  <af:spacer width="2" height="10" id="s14"/>
                  <af:inputText label="UserName"  id="it1"
                                        value="#{HomePage.p_user}"
                                binding="#{HomePage.it1}"/>
                  <af:spacer  height="2" id="s13"/>
                  <af:inputText label="Password"  id="it2"
                                        value="#{HomePage.p_password}"
                                        secret="true"
                                        binding="#{HomePage.it2}"/>
                                        </af:panelGroupLayout>
                <af:spacer width="10" height="5" id="s2"/>
                <af:panelGroupLayout id="pgl4" layout="horizontal">
                <af:toolbar id="t1">
                 <af:spacer width="70" height="5" id="s1"/>
                <af:commandToolbarButton text="Login"
                                         id="ctb2"
                                         action="#{HomePage.cb2_action}"/>
                    <af:spacer width="10" height="10" id="s12"/>
                    <af:commandToolbarButton text="Exit"
                                             id="ctb3"
                                             action="#{HomePage.cb1_action2}"/>
                  </af:toolbar>
                                               </af:panelGroupLayout>
              </af:dialog>
                      </af:popup> will you point me where am going wrong.?
Edited by: ADF7 on Apr 6, 2012 9:39 AM
Edited by: ADF7 on Apr 6, 2012 9:40 AM

Similar Messages

  • On startup of Mac Mini running OS Mavericks login windows are invisible. Login is possible but there are no white boxes for username and password. Keyboard inputs also do not display.

    Mac Mini with 2 Ghz Intel Core i7 running OS X 10.9.1. Recent problem with startup screen where I get a gray startup screen that is blank and does not show the login windows for username or password. Mousing over where they should be does provide a cursor change and I can click into the invisible window and login. Also, I can just type the information and hit enter and login without problems but the keystrokes do not appear either. This is not a big problem if I make sure that I type my login information correctly, but if I make a mistake it can be difficult make sure I am in the right place before I retype. Any ideas why the screen is just gray and does not show the windows? Once I type in the login info in the invisible windows and hit enter the computer starts up, loads finder, and runs without any other noticeable problems.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Calling Report Builder From Server(aspx page ) With encrypted username and password

    Hi , 
    Our application needs to have a link to Report Builder which will open a report builder for that current report and user can modify it accordingly.
    Currently our approach is to use a client side(JavaScript) url link which is in form as follows
    http://username:password@domain/ReportServer_SQLDEVELOPER/ReportBuilder/ReportBuilder_3_0_0_0.application?/ReportName
    But we do not want to show username and password in clear text , SO we have tried to pass it through ajax call and call the url from server or pass username and password in Authorization headers . Unfortunately , this does not serve our purpose and we are
    getting Unauthorized in firebug Console .We are using REST Services .Below is screenshot:
    This is a kind of blocker issue for us , So any timely help would be highly appreciated.In case of any queries you can contact me at [email protected]
    Thanks & Regards
    Mohit Methi
    NGC

    Put the domain in the Intranet Zone instead, and try again. They should not be prompted for auth as long as they log in with cached Domain Creds.
    Is the SharePoint site configured to allow NTLM?
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Validate web service username and password against Oracle EBS

    Hi,
    We have a requirement to pass username/password to a SOA webservice that needs to be validated against Oracle E-Business Suite (EBS) login credentials. The EBS users are not integrated with SOA Weblogic server. In EBS, the standard PL/SQL procedure FND_WEB_SEC.VALIDATE_LOGIN(user_name, password) can be used for validation. Appreciate if someone can provide input on validating the username and password as part of web service security header using any OWSM policy.
    Thanks!

    I'm guessing that you are trying to call an EBS API and are using FND_WEB_SEC to test that the user account is valid in FND_USER first before executing the API call. In that instance, you'll likely need to use the Oracle Applications Adapter for EBS if you want to authenticate the user through FND_USER.
    If you've not purchased that adapter, you could use a simple BPEL process, with a regular database adapter to firstly call the FND_WEB_SEC package to authenticate. Pass the response from eBS into a bpel variable, add a bpel switch based on the outcome of that variable either execute the API call or  throw an authentication error if the call failed.
    You can wrap all this up into one web service that then calls this bpel process, taking the username and password as as input parameters.
    Phil

  • Web service username and password problems

    Hi,
    I am trying to create a client to consume webservices exposed on a secure .net platform that is SSL protected (https).
    I am using netbeans 6 with WSIT support. When I create the web service and add the WSDL file - it comes up with the certificate that I then approve, but then just displays a IO Exception. When I access the WSDL through a browser, it requests a username and password (which I supply) and it works fine.
    I've tried on Netbeans 5.5 but with no luck - it asks for a username and password (at least) but doesn't accept them.
    How can I connect to an https web service that requires a LDAP username and password?
    Thanks,
    Brendan

    I'm guessing that you are trying to call an EBS API and are using FND_WEB_SEC to test that the user account is valid in FND_USER first before executing the API call. In that instance, you'll likely need to use the Oracle Applications Adapter for EBS if you want to authenticate the user through FND_USER.
    If you've not purchased that adapter, you could use a simple BPEL process, with a regular database adapter to firstly call the FND_WEB_SEC package to authenticate. Pass the response from eBS into a bpel variable, add a bpel switch based on the outcome of that variable either execute the API call or  throw an authentication error if the call failed.
    You can wrap all this up into one web service that then calls this bpel process, taking the username and password as as input parameters.
    Phil

  • How do I clear stored usernames and passwords for my podcasts?

    We currently operate a password-protected RSS feed for the subscription portion of our website. For the most part it works flawlessly; people can subscribe to the feed and receive daily updates to their iTunes. If their account is canceled or goes on hold for non-payment then our database deactivates their username, which halts access to the feed.
    That all works well. The problem is that if they re-subscribe to the subscription portion of our website they receive a new username and password. Then, when they go to re-subscribe to our password-protected podcast they are not prompted in iTunes for their new username or password. iTunes simply uses the old username/password combo from their canceled account, which makes the podcast fail to update.
    So essentially, I'm asking how we can manually clear iTunes' stored usernames and passwords for podcasts. Thanks!

    Figured it out. Just gotta delete keychain.plist, which is found in one of the following two spots:
    C:\Users\YOURUSERNAME\AppData\Roaming\Apple Computer\Preferences\keychain.plist
    C:\Documents and Settings\YOURUSERNAME\AppData\Apple Computer\Preferences\keychain.plist

  • How can i clear the usernames and passwords history from all login websites?

    how can i clear the usernames and passwords in the log in history of the websites? example when i want to login to my facebook i always type first letter of my e-mail and it comes with the passwords because before i put remember my password, and in other websites so, i just need to delete all this login history and it's not working from the clear everything !!! :S any idea please !! thanks in advance :)

    See:
    http://kb.mozillazine.org/Deleting_autocomplete_entries
    http://kb.mozillazine.org/Password_Manager

  • I am the founder of a non-profit organization, a donor had just given us her used iBook G4.  What do I need to do to wipe out her "stuff", change username and password, start all over new.  We will use this iBook in our learning center in Saigon, Vietnam

    To good citizens of the MAC world,
    I am the founder of a non-profit organization, we are caring for 6,200 orphans and street kids in Vietnam.  A donor had just donated her used iBook G4 for us to use in one of our several "learning centers" in Vietnam.  Folks sometimes donating PC but this is the first time we ever received a MAC.. :-)  I would like to know how to start this iBook all over new: change username and password.  I am looking so forward to bring it to Saigon in a few days and let our children experience MAC ... I am a 2 years MAC users and I have no intention to return to the Dark side.  Please help. I have the original OS disk.  Thank you so much.

    There should be no need to zero the hard drive.
    Using the Restore discs that came with the iBook when it was new, restore the system software using the appropriate instructions which you can find through a link contained in this Apple Knowledge Base article:
    http://support.apple.com/kb/HT1561?viewlocale=en_US
    Good luck with it.

  • Safari will not clear my username and passwords it has saved

    I am trying to get Safari to clear saved usernames and passwords from the saved list and it refuses to do so. I've done everything from go into settings and click edit on the usernames and passwords and click remove and even remove all and nothing happens. I've also clicked on file and reset safari and my usernames and passwords still aren't deleted. Whatever happens, I do not want to lose my bookmarks though; those are very important to me.
    Thanks,
    Travis

    HI Travis,
    In Safari Preferences - Autofill
    Make sure: user names and passwords is deselected.
    Open Keychain Access (Applications/Utilities) Select Passwords on the left.
    Delete all the keychains for the sites you don't want user names and passwords saved for.
    Relaunch Safari.
    Carolyn

  • My firefox on my lap top (with windows 7) cannot open a website with a username and password, without first clearing the history ? my other computer has windows xp and it works fine.

    My firefox on my lap top (with windows 7) cannot login to my e mail website with a username and password, without first clearing the history ? my other computer has windows xp and it works fine.

    I simply reinstalled fire fox 3.6.19 and I can login no problem. Seems like it could be a compatability problem between 5.0 and windows 7. One other thing that happened often was lag while playing mmorpg games. Not sure if this fixed it or not, but I can update this thread when i find out.
    Thank you to who ever provided the link to the older fire fox downloads page in another question thread.

  • When i open Firefox (in general), i dont mean sign into any email address, just to start using Firefox, i want to have always to sign in with my proxy account = username and password..how? thank you!

    when i click on the Firefox icon i want always to have to sign in with my proxy username and password.. i want more privacy in using Firefox in general.. is that possible? thanks

    If you use extensions (Tools > Add-ons > Extensions) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    You can use one of these to start Firefox in <u>Safe mode</u>:
    *On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
    *On Mac, hold down the Options key while starting Firefox
    *Help > Restart with Add-ons Disabled
    If it works in Firefox Safe-mode then disable all extensions (Tools > Add-ons > Extensions) and then try to find which is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Default username and password not found

    Hello all,
    Just bought the new WVC54GCA ip camera, tried to configure it with its setup but can't get in as I couldn't find the admin password anywhere.....Does anybody know what are the default settings for these username and password fields?
    (Linux, MInt, Firefox...)
    regards

    Default Username is admin and default password is admin...However, if it does not work then you need to enter the password that was set when you installed the camera for the first time...If you don't remember the password then you need to reset the camera and re-configure it...

  • Does clearing cookies remove usernames and passwords Firefox 6

    Are Usernames and passwords for websites undone-forums etc.,?

    There is a difference between remembering the name and password in the Password Manager and a "remember me" check box on a web page.<br />
    The latter usually involves the creation of a special "remember me" cookie that is stored on your computer and that is send to the server.<br />
    If that "remember me" cookie is removed or gets corrupted or is not send to the server then the server won't remember you and you need to sign in once again.
    * http://kb.mozillazine.org/Cookies
    * http://kb.mozillazine.org/Password_Manager

  • How can I save or export the file containing stored usernames and passwords?

    I'm about to update my desktop computer's operating system, which will mean my hard drive will be wiped. I want to save any file Firefox might have that contains usernames and passwords so I don't have to rebuild that file once Firefox is reinstalled. I've found such files for extensions and bookmarks but not for passwords.

    In article: http://kb.mozillazine.org/Password_Manager#Backing_up_and_restoring_passwords
    *'''Backing up and restoring passwords '''
    **Firefox '''''3.5 and later versions''''', including current beta and nightly builds, use '''''signons.sqlite'''''.
    *'''Troubleshooting'''
    **Firefox '''''3.5 and later versions''''' use the file '''''signons.sqlite''''' to store the encrypted names and passwords. passwords.
    **You can rename '''''signons.sqlite''''' to signons.sqlite.sav to make Firefox '''''3.5+''''' versions use the file signons#.txt from a previous Firefox 3 or 2 version.
    ***'''''3.5+''''' = same as '''''3.5 and later versions'''''
    Also:
    *http://kb.mozillazine.org/Profile_folder_-_Firefox#Files_and_folders_in_the_profile
    *https://support.mozilla.com/en-US/kb/Backing+up+your+information
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    *http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile
    *

  • How to set username and password before redirecting to a RESTful webservice

    I am a .Net developer who has developed a webservice used by my ColdFusion colleagues. They are using ColdFusion 9 but I'm not sure if they have incorporated any of the newer features of ColdFusion in their apps. Here is a snippet of how they have been invoking the webmethods:
    <cfscript>
                         ws = CreateObject("webservice", "#qTrim.webServiceName#");
                         ws.setUsername("#qTrim.trimAcct#");
                         ws.setPassword("#qTrim.trimpwd#");
                         wsString=ws.UploadFileCF("#qTrim.webserviceurl#","#objBinaryData#", "#qFiles.Filename#", "Document", "#MetaData#");
                </cfscript>
    As I understand things, the .setUsername and .setPassword correspond to the Windows credentials the CF Admin set when the URL of the .Net webservice was "registered" and given its "name" (for the CreateObject statement above). I have 4 webmethods that are all invoked in this manner and this SOAP protocol works adequately for us. Please note that this ColdFusion web app authenticates anonymous remote internet users by prompting for a username and password and compares them to an application database (i.e. Microsoft calls this "forms authentication"). Because only a few Windows domain accounts are authorized to call this .Net webservice, the above code always uses the same username/password constants and it all works.
    My question involves the newest webmethod added to the .Net webservice. It requires that callers must invoke it as a RESTful service which means it must be invoked by its URL. Here is a snippet of C# code that invokes it from an ASP.NET webclient:
                string r = txtRecordNumber.Text;
                string baseurl = "http://localhost/sdkTrimFileServiceASMX/FileService.asmx/DownloadFileCF?";
                StringBuilder url = new StringBuilder(baseurl);
                url.Append("trimURL="); url.Append(txtFakeURLParm.Text);
                url.Append("&");
                url.Append("TrimRecordNumber="); url.Append(txtRecordNumber.Text);
                Response.Redirect(url.ToString());
    I assume a ColdFusion script could easily build a full URL as above with appended querystring parameters and redirect. Is there some way for the CF code redirecting to a RESTful webservice (by way of its URL) to set the Username and Password to this Windows account mentioned above? When the DownloadFileCF webmethod is hit it must be with the credentials of this special Windows domain account. Can that be set by ColdFusion someway to mimic the result of the SOAP technique (the first snippet above).
    I hope my question is clear and someone can help me make suggestions to my ColdFusion colleagues. Thanks.

    Can you clarify what you mean by "establish a different Windows identity"?  Usually passing identity to a web site or service means adding something to the request's HTTP headers.  This could be a cookie in the case of .NET forms authentication or the "Authorization" header in the case of basic authentication.
    The SOAP web service invocation code you posted does use basic authentication, according to the CF docs "ColdFusion inserts the user name/password string in the authorization request header as a base64 binary encoded string, with a colon separating the user name and password. This method of passing the user name/password is compatible with the HTTP basic authentication mechanism used by web servers."
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec13a13 -7fe0.html
    If you need to mimic the SOAP techinque you should have basic authentication enabled for your REST service endpoints.
    If your authentication method is different then CF developers will need to add the appropriate HTTP headers to their service calls.  Note that calling a REST service from CF would probably be accomplished using the CFHTTP tag if the service is designed to be consumed by the CF server.

Maybe you are looking for

  • How do I set up my AT&T Beam USB modem to use on my MacBook Pro?

    I purchased the AT&T Beam after the salesperson at AT&T told me it wouldn't be a problem to use with my MacBook Pro.  When I received it, the instructions were bare minimum which didn't help me at all.  So, I plug it into my USB and nothing happens. 

  • LSMW error in MM01- problem

    Hello experts plz solve my problem I am entering material in material mASTER through MM01 t-code, I have taken the following five fields for the material creation through LSMW Material Number (MATNR) Industry sector (MBRSH) Material Type   (MTART) Ma

  • Jsp:include issues

    I have been scouring the internet trying to find the answer to this. I am trying to impliment jsp:include in one of my assignments for school, and the only problems I have with it is that when looking at references, nobody tells you how to access the

  • Planned Delivery Date and Actual Delivery date.

    Hi, Is there a report in SAP which shows the delivery date of a PO line item and actual GR posting date from PO history in one report? I need to display the planned delivery date and actual delivery date in one report, preferably in columns next to e

  • Where can I download weblogic 9.0 DTD file

    Where can I download weblogic 9.0 DTD file? such as the DTD for weblogic-ejb-jar.dtd. Thanks Zhong