Error message displayed twice

Hello

JDev 11.1.2.4

I have an inputText with a custom validator

< af:inputText value = "#{bindings.pPassword.inputValue} 'simple required ="true"="true""
Columns = "#{Bindings.pPassword.hints.DisplayWidth}" maximumLength = "16" "
shortDesc = "#{bindings.pPassword.hints.tooltip}" id = "it1" secret = "true" = "true" autoSubmit "
Validator = "#{pageFlowScope.ChangePassword.validateUserPassword}" > < / af:inputText >

The validator is called when I leave the inputText only ONCE as expected. But when it is in error, the inputText is marked, and the error message is displayed twice like this:

Messages for this page are listed below.

Missing a digit

Missing a digit

The code of the validator:

{public Sub validateUserPassword (facesContext, UIComponent uiComponent, FacesContext, object)}
System.out.println ("Validate");
Password String = object (String);
At least a check digit
m = regexAtLeastOneDigit.matcher (password);
If (! m.find ()) {}
System.out.println ("a figure is false");
FacesMessage message = new FacesMessage();
It's one that is displayed
message.setDetail (the "a missing digit");
message.setSeverity (FacesMessage.SEVERITY_ERROR);
facesContext.addMessage (uiComponent.getClientId (), message);
throw new ValidatorException (message);

}

Why appears twice?

Thank you

The first is to call you

facesContext.addMessage (uiComponent.getClientId (), message);

and the second because you throw one

throw new ValidatorException (message);

with the same message that the framework adds the messages of faces again.

Timo

Tags: Java

Similar Questions

  • Computer will refresh not error message displayed is "WindowsUpdate_80240016" "WindowsUpdate_dt000"

    Computer will refresh not error message displayed is "WindowsUpdate_80240016" "WindowsUpdate_dt000"

    Hi valeriecarterZA,

    ·         Updates failed to install?

    ·         You receive error messages in the history of the update to update failed?

    ·         Have you made changes on the computer before this problem?

    Search for the error message for the updates that have failed to be updated. Follow the steps:

    Click Start > all programs > windows update > view update history

    I suggest you follow the steps in the article.

    Error message when you try to install the updates on the Windows Update Web site or the Microsoft Update Web site: "0 x 80240016.

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

    For reference:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

  • cartiadge error message display refer to the device documentation totrouble shoot

    HP officejet j3500 series all-in-one sir I Bay an orginel hp 702 cartriadge onl 50-60 copy cartriade error will be now display refer to the device documentation trouble shoot it please thanks replay

    Did you buy printer and then move to another country? If so, the only way to fix is to contact technical support.

    Cartridge error message.

  • Error message "display driver has failed but has now recovered.

    I received a message on my PC saying "display driver has failed, but has now recovered," I got a black screen when it happened.  Does anyone know what this means?

    Jack

    It is more informative than an error message.  If she does not recover, it would be a problem.  You may be able to solve it by installing the latest video driver available.

  • Error message: display driver stopped responding and has recovered

    Original title: I get an error message of...

    I get an error message... display driver stopped responding and recovered... then I get also get with her driver Intel Graphics Accelerator Driver for Window display 7 (7) is not responding and successfully recovered. also sometimes the screen just flickers...?

    Thanks for your help!

    Try to download the latest driver for your graphics card.

  • Display driver hangs on the computer and the error message "display driver NVIDIA Windows Kernel Mode Driver Version 306.97 has stopped working and recovered."

    Original title: NVIDIA Windows Kernel Mode Driver Version 306.97 display driver has stopped working and recovered.

    Hiya,

    I have recently installed Windows 8 Pro, installed all of my usual applications etc..
    The problem I've encountered is maintaining display driver crashing. Or have waiting periods. The exact error message reads;
    "Display driver NVIDIA Windows Kernel Mode Driver Version 306.97 has stopped working and recovered."
    Until now it expires randomly even when the computer is idle, and more frequently when I watch videos online. Also, watch a clip full screen on some sites like YouTube is ok, but on others, it is very laggy (updated maybe once per second the image) and the sound is out of sync.
    I can't find a way to properly uninstall the graphics driver.

    At least yours is working semi... I have the GTS 450 (uses the same drivers) and the mine does not at all... Stuck with the regular game pilot integrated ATM and can not all games... Microsoft told me to wait a few weeks and for the reminder and Nvida said 10 ways to uninstall and reinstall the drivers for same. Hope someone with to get a fix for this soon.

    Hi guys,.
    Looks like this isn't just me.
    Just an update, that I can not confirm it as a solution, but I have not encountered any problem (a little screenlag aside) since the installation of the drivers beta. For me, the beta version of the driver is 310.33, R130. The only other change to my system updates Adobe Flash version packaged with Google Chrome to 11.4.31X to 11.4.402 to eliminate serious problems when you watch the video in full screen.
    Information system;
    Operating system: Windows 8 Build Pro with Media Center 64-bit, 9200
    CPU: AMD FX-8150 eight physical cores
    GPU: ASUS NVIDIA GeForce GTX 560 TI
    Main hard drive: OCZ Vertex 3 120 GB
    It may be useful
    Edit: Still not falling down, 11/02/12, 4 days

    New edition;

    If you still receive the error message, try the following steps;
    Has. try to perform a clean installation of the driver.
    Download the latest drivers for your graphics card. Run the downloaded file, and select "Custom Installation". In the next screen, you will see a checkbox or similar labeled "Clean Install".
         

    You can do so by visiting nVidia Driver Downloads (www.nvidia.com/Drivers). Automatically detect the right driver or download using the form. The best way in my opinion is to use the GeForce experience, who will do anything for you in two clicks and a reboot.
    B. close all other programs
    It is possible that the error was caused by too many programs that need to use the resources provided by the graphics card/chip. It is also possible that a certain program caused a conflict that pilots crashed.
    You can try closing some currently open programs one by one and see if the error persists, or restart your system with disabled startup programs and allow them one by one to find the culprit. If the error is too persistent to do the above, it would be easier to start in safe mode option.
    More information can be found below
  • Using Custom Component error MEssage display

    Hello

    I built the custom component to validate the size of the file and the file Extension.

    That is, user should be able to check in the document if the size is less than 5 MB and the file extension is one of the "png", "tiff", "doc", "Pdf".

    Here, whenever validation files I'm throwing the exception "Type of file file size exceeds the limit or not valid.

    I am able to get the custom component of work according to the validation. And is alsi recording the error in the log file.

    But I need to show the error message when the click the user on the button control on the page of the Complutense University of MADRID.

    From now on, it shows a generic error saying "cannot perform the function validateStandard and service CHECKIN_NEW_SUB.
    The error was caused by a problem generated internally. The error was logged.

    Any help on this is much appreciated.

    Kind regards
    Helen Shetty.

    Hello

    You can throw a ServiceException in your filter with the message you want to display.

    Roman.

  • Error Message displayed when executing command FNDLOAD machine in windows

    Hello

    I get the following error when executing the command FNDLOAD in the Windows Machine. Can someone give some details for this problem.

    FNDLOAD command used: *.

    +. / FNDLOAD apps / [email protected]:1521:OA10 0 DOWNLOAD D:\oracle\oa10appl\xdo\11.5.0/patch/115/import/xdotmpl.lct xdotmpl.ldt XDO_DS_DEFINITIONS APPLICATION_SHORT_NAME = IN.

    Error message is displayed for order above:_
    APP-FND-01564: Error ORACLE 6401 AFPCOA
    Cause: AFPCOA failed due to the ORA-06401: NETCMN: invalid driver indicator

    Let me know the solution of this problem

    Concerning
    Mohammed Arif

    Please try this format for the JDBC_CONNECTION and see if you get the error-' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST =)(PORT=)) (CONNECT_DATA = (SERVICE_NAME =)))'

    If you still have the same question, then please connect a SR.

    Thank you
    Hussein

  • the managed bean error message display

    HIE

    on my page there are 3 data related to text entry boxes, and all are mandatory.

    There is a text box more input that is not bound to a data control.

    the button submit, I have a managed bean action method. In this action method I get the value of these data - not related to the input area and make a logic.
    From the I want to launch an error message on the UI for this component.

    How to do this?

    Vik
    http://adfjsf.blogspot.com
    http://Twitter.com/vikceo

    Hello

    You can do this using the FacesMessage class and this can be written anywhere within action/actionlistener/valuechangelistener/post etc...

    Example Code:

    //adding global message, which is displayed with af:messages tag
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Value entered is invalid");
    context.addMessage(null, msg);  
    
    //Component level message, need to use af:message tag. This component level message is also displayed under af:messages tag unless globalOnly property is set to true
    msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "component level message - Value entered is invalid");
    context.addMessage(FacesContext.getCurrentInstance().getViewRoot().findComponent("
    

    Jean Lou

  • Impossible to update of the BIOS in Satellite A300-1ID (PSAGCE) 0 error message displayed

    Hello!

    Last weekend, I bought my laptop and I can't seem to do the update of the BIOS (from 1.30 to 1.40). I use Vista 32 Home Premium SP1 (which came preinstalled in the phone) and after downloading, unpacking and running the file provided by the TOSHIBA (PO10140M.exe) site, I get the following error message:

    C:\Users\Dado\AppData\Local\Temp\iscA516tmp\insyde flash.exe could not be run.

    I don't know it's the right file, because it was one mentioned, after completing all the fields in the search screen update BIOS.

    I don't understand what the problem is because the laptop is brand new.
    Any help would be greatly appreciated.

    Kind regards
    Ed.

    You are an administrator?

    Try right-clicking the BIOS file and select "Run as Administrator"

    Also to disable your antivirus, it can block the update of the BIOS.

  • "documents.library - ms" is no longer work error message displayed when you try to access files via the file browser, why?

    I bought a computer window 8 in February of this year.  I use a lot of Word and Excel documents.  I don't know how I got hurt, but now I get the above error message.  Please someone know how to fix this?

    Hello

    I understand that you are getting the error documents. Library-ms' no longer works, when you try to access the files in the file Explorer.

    You can try the following method and check if that helps resolve the issue.

    Method 1: delete the document library.

    a. press the Windows key + E from the start screen.

    b. click on document library.

    c. Select Remove.

    d. click on Yes when it asks confirmation.

    Note: deleting of a library does not delete the contents of the included folders. However, you need to add or include your folders manually, if necessary.

    Method 2: you can follow the procedure to restore libraries.

    a. press the Windows key + E.

    b. right-click on the library.

    c. click on restore default library.

    You can check the link for more information.

    Libraries: Frequently asked questions

    http://Windows.Microsoft.com/en-in/Windows-8/libraries-FAQ

    Libraries: How to add or delete a folder

    http://Windows.Microsoft.com/en-in/Windows-8/Add-folders-library

    If please get back to us and let us know if this helps to resolve the issue.

  • How read the error message displayed in the OAF page... its urguent very please

    Hi friends,

    In a stnd irec registration page, if the user selects a StartDate or EndDate field as a later date like January 2, 2019, his watch a validation error database as HR_ST_DT_INVAL_PEM in the page of the OFA. So I want to replace this error with a custom message such as, "Please enter a valid start date.
    Can someone please help this.its very urguent for me...
    I analyzed according to origin of this error message, I found that the CO page called AOS, AM his call to an API that makes this error message.

    Hi GA,.

    Error message could be popping up every time you naviate to a foeld to other similar to when field Instance of new element or when file validate.

    In this case, you can take this field say that your domain is enterOrg

    if (pageContext.getParameter("enterOrg") != null && "XX_ORG".equals(pageContext.getParameter("enterOrg")) {
              try
                 {
                        if ()
                           {
                                    throw new XXException("Your Check");
                           }
                     ..
                   ..
                     ..
                     ..
                 }
               catch(XXException re)
                                {
                                String errMsg;
                                MessageToken tokens[] = {new MessageToken("XX_TOKEN1", token1)
                                                        ,new MessageToken("XX_TOKEN2", token2)
                                                                    };
                                OAException errorMessage = new OAException("XXPA","YOUR_MEG_IN_FND",tokens,OAException.ERROR,null);
                                pageContext.putDialogMessage(errorMessage);
                                } 
    
    }
    

    Thank you
    JIT

  • Error messages displayed with params for ViewController project

    Hello
    I use Jdev 11.1.1.5.0.
    I'm posting of warning/error messages on the user interface form managed bean using the syntax, subsequently

    FacesContext.getCurrentInstance () .addMessage (null, new FacesMessage (FacesMessage.SEVERITY_ERROR, 'ERROR_MESSAGE', 'ERROR_MESSAGE'));

    ERROR_MESSAGE has its description in the Bundle.properties file.

    I want to see the description of the message with the settings and parameter values going running.

    for example: product {productName} is not allowed to the customer {customerName}.

    I know how go ADF BC but I want the same behavior of Managed beans.

    Please help find the solution...

    Thanks in advance
    Nag

    Hello

    Try this:

    MessageFormat msgFormat = new MessageFormat("ERROR_MESSAGE");
    Object[] paramVals = new Object[]{"ParamVal1", "paramVal2"};
    String formattedMsg = msgFormat.format(paramVals); //Get the formatted message with arguments replaced with values
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, formattedMsg, formattedMsg));
    

    Jean Lou

  • I got the error message "display driver stopped responding and has recovered," when running windows experience index.

    This error continues to occur after I wiped the system and the drivers and reinstalled the. What should I do? My video card is an ultra 8800 which has never had any problems.

    Hello

    See the following article:

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article: back up the registry

    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    "Display driver stopped responding and has recovered" error in Windows 7 or Windows Vista:

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

  • A Quiz Question. Pass mark shows in the results; Error message displayed

    I have a quiz of a question at the end of my course of SCORM1.2. "Do mark you this course finished in the LMS?" Yes/No.

    If the user clicks on no, the present results screen notes "0". But button recovery brings back the slide 5 (a content slide), and no to the question Quiz. If the user clicks Yes, results screen shows "100" score, but display a failure message, not the message of success.

    I tried all types of settings, including not to show a result slide and cannot get this to work. On our LMS, it seems if I let you move backwards in Quiz preferences (I need so that the "previous" button to work throughout), the 'yes' mark (100%, full course) is not passed to the LMS.

    Can anyone provide guidance on what I should use for the Quiz and Quiz preferences properties settings?

    Hi Ingrid,.

    Can you check, perhaps in advanced Interactions (F9) if there is an object received from slide 5? Because this score will be added to the system variables. If it has a partition, use the accordion of Reporting in the properties panel to delete the partition.

    Lilybiri

Maybe you are looking for

  • Why your update totally mess up my computer?

    I avoided the upgrade as possibly in anticipation of problems, but I use you tube and he's now threatening me. Of course your upgrade has been so bad that it almost off my entire computer. Slowdown to "glacier" in speed and was unable to use my Word

  • Question about BIOS V1.50 for Satellite M70

    Does someone has a patch list in this version of the 1.50 bios upgrade (08/07/07)

  • Equium A200-15I - cannot connect to networks

    I have an Equium A200-15I and unable to connect to wireless networks. I can connect properly to my network wireless at home and in the past have had no problem connecting to networks wireless in other places. However, recently I have been unable to c

  • servicesafari * what?

    What is - this * servicesafri *.

  • Edit cell in multicolumn listbox is slow

    Hello I want to do an editable multi-column listbox where users can perform a derivation of the channels, using of-1 in 1 to subtract channels. Now when I put the multiclomumn listbox with editable cells, it must be a least a second (run-time) really