Error messages should come from the validators?

For the experienced:

I use JDeveloper 10.1.3.4 and have a question to put errors on the page.

I have a login to the application page. When the user has entered the user name and password and click the submit, the action behind the button will match the input of user name and password against the user name and password in a database table.

Until now I know how to handle this is
-If the user name is not found, navigate the user to another page to tell him that and offer options to return to the login page or stop smoking;
-If the user name is found, but password not match, navigate the user to another page to tell him that and offer to return to the login page or to quit smoking.

It's a little heavy for both the developer and the user. I saw error messages in the police of neat little red nice since the data validator, appears next to the inputText component. But so far all I know is that this error message is from the validator.

My question is if there is a way to put this message programmatically, without leaving the login page, behind the Submit button in the bean to support?

If possible, I also put a button leave next to the Submit button, setting a Boolean variable (for example, authenticationFailed) in the bean support and through the rendered = "#{login.authenticationFailed}"attribute of the key Quit to show the Quit button only when the connection is incorrect. "

Thank you very much!


Newman

Hello

Basically, you can get your condition by adding the Message in the context of faces

FacesContext fctx = FacesContext.getCurrentInstance();
if () fctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, "Wrong password", null));

then Faces Servlet will not continue to the next phase, but displays messages on the page using or supplements

Kind regards

Branislav

Tags: Java

Similar Questions

  • Runtime error on the desktop - no error of birdthrowing comes from the video card software

    Original title: graphics card error I guess that

    computer is turned on after 15 minutes, run-time error is an error right when I say he sometimes makes the desktop icons does not reset, no birdthrowing error is from the video card software
    How can I solve this problem

    name: Toraman Uygar

    Hello

    • What is the full error message that you receive?
    • How long have you been faced with this problem?
    • What were the changes made before the issue occur?

    You can check this link:

    Windows XP restarts unexpectedly or restarts when you shut down the computer

    http://support.Microsoft.com/kb/320299

  • BlackBerry Smartphones blackBerry AppWorld comes out with an error message and even that the account of Blackberry ID (inaccessible)

    Hello!! Appworld does not open. Instead it will show an error message (it is a problem with the current Session. Please sign in to continue. Error ID: 30702). While the Blackeberry I intend to come out of this message (unable to update your Blackberry ID account information). I use a blackberry Torch 9810 with 7.0 on this OS. Please, what can be done to remedy this disorder. COS I already tried to uninstall the software and reinstalled again still with no positive results.
    P.S: it works fine before. The blackout began about 3 weeks ago.
    Thank you

    Hello

    Here's a knockout who deals with these errors:

    • KB28212 "Unable to connect to your BlackBerry ID account" or "Impossible to update your BlackBerry ID account information" error occurs on a BlackBerry smartphone running BlackBerry 7

    I hope that it contains something useful! There are also several existing threads on this site, which discuss that exact error... your opinion of those who may prove useful, and a search of this site, by using the code, or an error message should reveal all the existing threads that are applicable to you.

    Good luck and let us know!

  • Windows 7 - error message from the address conflict IP appears periodically. Error message "another computer on the network has the same IP address as this computer.

    Error message "another computer on the network has the same IP address as this computer. Contact you network administrator for help resolving this issue. More details are available in the Windows system event log"

    Does anyone have a simple way (for a dummy) to solve this. If I disconnect my wireless router and laptop and turn the two again this sorts the problem temporarily, but it does not provide a definitive solution.  I use a new laptop and my old one has been scrapped, so I do not know whence this 'conflict '.  My old laptop had Windows XP operating system and my new Windows 7.  I hope that someone can provide a solution to this annoying problem.

    Hi Figgerty,

    have you tried these steps?

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-networking/IP-conflict-error-another-computer-on-this-network/4eed87e2-45FD-4FF7-ae29-9a9fb664a8cc

    B Eddie

  • Since yesterday, I can't export to Flickr more. The following message (I translate from the french, so probably different from the original English message): "an internal error: comma symbol was expected.»

    Since yesterday, I can't export to Flickr more. The following message (I translate from the french, so probably different from the original English message): "an internal error: comma symbol was expected.»

    Flickr is flaky again.  You'll just have to wait (minutes, hours, or even days).   It happens more often that Yahoo is falling apart.

  • "I tried to load a Turbo Tax 2011 program and and the error message came up to the top -" D; "-is not a valid win32 application".

    "I tried to load a Turbo Tax 2011 program and and the error message came up to the top -" D; "-is not a valid win32 application".  In D, I got the TurboTax 2011 loading program. Can you help me fix this problem? E-mail address is removed from the privacy *.

    Pete,

    If you right-click "My computer" and select 'Properties', under the general tab, you should see your version of Windows XP... That said your current pack service is?

  • Cannot install my printer/error message-unable to create the object print dell v505, that the printer is not compatible with a polcy enabled on your computer that blocks NT 4.0 drivers (1930)

    Original title: cannot install my printer error message

    I am trying to install my printer to dell v505 from the factory disc and get this error message: failed to create the object print dell v505 printer is not compatible with a polcy enabled on your computer that blocks NT 4.0 drivers (1930)

    Any help, need a lot.

    Hello

     
    1. what version of Windows are you using?
    2 did you the chnages in the computer before this problem?
     
    I would suggest trying the following methods and check.
     
    Method 1: Run the fix, install the printer and check
    Diagnose and automatically fix problems printing and printer
    http://support.Microsoft.com/mats/printing_problems/
     
    Method 2:
    Error message when you try to connect to a printer in Windows Vista: "the printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers.
    http://support.Microsoft.com/kb/931719
    Method 3: Install the printer in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7.
    http://support.Microsoft.com/kb/929135
    Note: Please, go to step 7 of the Kb to maintain the computer to normal startup.
     
    You can download the latest driver for your printer from the link below.
    http://www.Dell.com/support/drivers/us/en/04
     
     
    You can also check:
    Printer driver is not Compatible if a policy is enabled on your computer.
    http://support.Microsoft.com/kb/282011
     
    Error message when you try to connect to a printer in Windows Vista: "the printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers.
    http://support.Microsoft.com/kb/931719
  • ActiveX error message not registered during the installation of Adobe Flash

    I can't watch the videos from the internet. I tried to uninstall it, then install the latest version of Flash, but after trying to download, I get the error messages.  Also something about the key SHORTCUT and permissions.  WTF?

    Hello

    What is the full and exact error message?

    Read the following article that may help you resolve this problem.

    Troubleshoot Flash Player installation | Windows

    http://kb2.Adobe.com/CPS/191/tn_19166.html

  • Whenever I send an email error message box comes up (with no message displayed)

    Whenever I send an email error message box comes up (with no message) and the email is sent to the Outbox, even if the email is actually sent and received by the addressee. Enamel and then continually gets sent unless I have delete the email from the Outbox file. Anyone know why this is happening and what can be done to remedy this? It's frustrating because I don't get a copy of the email in my file sent as back up.

    CrystalBall told you use Outlook Express. Fix? You have corruption of dbx files.

    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.

    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.

    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.

    General precautions for Outlook Express:

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.

    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.

    Compact often as specified above.

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

  • error message stopping me from loading mcafee

    error message stopping me from loading mcafee as well as I can not load the 3 pack

    Hello PamelaReeves straw,

    What is the error message you get when you try to install McAfee? You need an internet virus protection if you do a search on the internet. If you do not have an antivirus program, Microsoft has a product, that you can download for free. Click on the link below to download and install Microsoft Security Essentials.
    http://www.Microsoft.com/security_essentials/

    It provides protection for your PC in real time at home that protects against viruses,
    spyware and other malware. It's a free download from Microsoft that is simple to install, easy to use and always up to date so that your PC is protected.

    Try to download to your desktop and install from their. If you get an error message and cannot install, please let us know.

    Sincerely,

    Marilyn

  • Blue "C0000142 dll initiallization failed" error message - windows vista on the computer laptop inspiron 1525 Dell.

    Blue "C0000142 dll initiallization failed" error message - windows vista on the computer laptop inspiron 1525 Dell.  I tried all system tools and I get nothing and the only point of system restore in the restore SP1 update. not the best at the command line and even worse to system32 please help I need the laptop in return

    Hello

    1. when exactly you get this error message?

    2 are you able to boot into the office after getting this error on blue screen?

    3. don't you make changes to the computer until the problem occurred?

    I suggest you to follow the steps below and check if it helps.

    Method 1: Try to start your system in safe mode and check if the same problem occurs.

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Method 2 : If the question does not exist in Mode safe mode then try to put your computer in a clean boot state.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Method 3: If the problem persists, then try to run the Startup Repair tool.

    Startup Repair is a Windows Vista recovery tool that can fix certain problems, such as system files missing or damaged that may prevent Windows from starting correctly. When you run the Startup Repair, it scans your computer for the problem and then tries to fix it so that your computer can start correctly.

    Startup Repair: http://windows.microsoft.com/en-US/windows-vista/Startup-Repair-frequently-asked-questions

    Hope this information is useful.

  • When I try to delete the message in the "Deleted items" folder I get an error message "some items in the folder"Deleted items"could not be deleted." year error has occurred. Any Suggestions?

    I get to see all the messages that I deleted in my "Deleted items" folder and when I try to delete the message in this folder I get an error message 'some items in the folder "Deleted items" can not be deleted.' an error has occurred.  Also when I try to delete my Inbox it won't move message from 'deleted items '.  Any suggestions?

    This is probably due to a mismatch between what is in the message store and which think that the database is in the message store.  Try to compact and repair the database and see if that fixes the problem.  See www.oehelp.com/WMUtil/

    Steve

  • error message 1606 could access the location %APPDATA%\ network

    Hello

    I tried to install office 2007 on my computer. I now have 2003 on my computer. When I try to install I get the error message

    error message 1606 could access the location %APPDATA%\ network

    I have window vista home basic edition. What should I do next. Thank you

    Please try this FixIt:

    http://support.Microsoft.com/kb/2258121

    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • error message "Windows cannot access the specified device, file, or the path."

    Whenever I try to open a file even my music internet explore or anything that I get an error message Windows cannot access the specified device, path or file.

    Hi nanditaberi,

    Since when are you facing this problem? What were the changes to the system between the time where everything has worked, and when you noticed the problem?

    This problem may be caused by this security software on the computer, uninstall them might solve the problem.

    Example: AVG, Zone Alarm

    Important:

    O before you uninstall the security software disconnect the computer from the internet. Make sure that the windows firewall is enabled.

    Ø you may need to check with the manufacturer of security software for reinstallation and activation.

    O re - install the security software on the computer.

    Reference:

    Please read the steps provided by, Donna, dated Saturday, January 3, 2009 14:01click here for the post.

    A scanner online for any threat and try to correct

    http://OneCare.live.com/site/en-us/Center/cleanup.htm

     

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • "Driver not installed successfully", the error message when you use the new MP3 player.

    I recently bought a Sony Mp 3 (model NWZ-E384) Player.

    When I connect the USB I get an error message will appear in the lower right corner on the screen saying "driver not installed successfully.

    Why am I seeing this? Better yet, why am I this problem? My previous Sony Mp3 worked fine with Windows 7.

    Is there a round work to install the device driver on my PC?

    Thank you very much

    Ian

    Don't know if this helps Sony - https://ca.en.kb.sony.com/app/answers/detail/a_id/42390/c/65, 67/p/57784,59687,59925,80740 / (from their support pages for the NWZ-E384 - http://esupport.sony.com/CA/p/model-home.pl?mdl=NWZE384&template_id=1®ion_id=3&tab=howto#/howtoTab ).

Maybe you are looking for