How to show a single error message for all fields

Hi
I have a JSF from containing around 10 controls(input, select etc.) .
Now I need to display an error message in case any of the mandatory control has validation error.
Message format would be like
"*Please,Complete the fields marked with yellow!"* The message I need to show in a div tag with Yelow background.
Currently, I am getting individual default error message in case validation fails and related field is bordered with Yellow.
My code is below.
*<h:panelGrid columns="3">*
*<h:outputText value="#{msgProv.bi_firstname}" />*
*<h:outputText>*
*<rich:spacer width="100px"></rich:spacer>*
*</h:outputText>*
*<h:panelGroup>*
*<h:inputText*
*value="#{brokerInformationFields.firstName}"*
*label="#{msgProv.bi_firstname}" id="firstName" required="true">*
*<f:validateLength maximum="10" minimum="2" />*
*<rich:ajaxValidator event="onblur" />*
*</h:inputText>*
*</h:panelGroup>*
*<h:outputText value="#{msgProv.bi_lastname}" />*
*<h:outputText>*
*<rich:spacer width="100px"></rich:spacer>*
*</h:outputText>*
*<h:panelGroup>*
*<h:inputText label="#{msgProv.bi_lastname}" id="lastName"*
*value="#{brokerInformationFields.lastName}" required="true">*
*<f:validateLength maximum="20" minimum="1"/>*
*<rich:ajaxValidator event="onblur" />*
*</h:inputText>*
*</h:panelGroup>*
*<h:commandLink action="#{brokerInformationActions.submit}">*
*<h:graphicImage value="/images/axa/btn_submit_from.png" style="border:0px;"/>*
*</h:commandLink>*
I am using (JSF1.2,Rich Faces 3.3.0,Facelets.)
And a Phase Listener from
http://balusc.blogspot.com/2007/12/set-focus-in-jsf.html
This Phase listener is to border the control with Yellow in case validation fail.
Now my Query
*1) How can I show a single message for all fields as I marked above in case of validation failure?*
*2) Now, the control is becoming yellow borderd when user clicks the submit button and validation fails.*
*User can move from one control to other using tab. That time proper validation message is appearing.*
*but the border of the control is not changing to yellow.*
*What's the correcion can be made to meet that requirement too.*
regards
Roy

Hi Nabheet,
Thanks for your response.
The FM returns the error messages if they are standard ones. For example, if the posting period is closed - the FM will not allow the Workflow to proceed further.
But in this case, I have a custom error - for a particular Profit center, Cost center and I/O fields are mandatory(not at time of parking, but should be filled before posting).
Since this is not a standard error, this FM will not stop workflow from proceeding further. How can I have the custom error captured in this FM?
Thanks.

Similar Messages

  • Error Message-- For Balancing field "Profit Center" is not filled

    Hi All,
    When I do Shipment Start get Error-Message for Balancing field "Profit Center" is not filled!
    A PGI for the DNXXXXXXXX is not possible!
    Can u please help me how to resolve this issue ?
    WM Baby

    Hi,
    AS per configuration , there is prifit centre assignment  .Enter the profit centre in the field of profit centre by the help opf F4.
    Regards,
    Andra

  • How to get rid of error message for the material?

    Hi everybody,there is a material which is showing an error message whenevr try to create a sales order, i've checked the material master...there is no check in X-plant Mtrl or X-dist chan or any flag for deletion...but still the red error message comes up while creating a sales order...how to get rid of this error?

    this means material is blocked for procurment
    three kinds of block can be there
    01 Blocked for procment/whse
    02 Blocked for task list/BOM
    03 Blocked for Purchasing
    GOTO MM42 give material n plant data
    Select BESIC VIEW
    there is a field called as material block remove the blocking reason
    Hope this will help
    Edited by: WISH on Mar 24, 2008 6:33 AM

  • How to show a custom error message in Workflows

    Hi
    I am working on an already developed Z copy of BO FIPP.
    The requirement is to make a customer specific validation on Profit centers which should be checked just before posting the document.
    I am aware of the POST method in FIPP that uses Function Module -  PRELIMINARY_POSTING_POST_ALL to make sure that everything is fine and captures the errors as well if any. - But it captures only standard SAP errors.
    How can I use this FM to capture my custom errors as well.
    Or is there any way to achieve this.
    Kindly advise.
    Thanks,
    Arash.

    Hi Nabheet,
    Thanks for your response.
    The FM returns the error messages if they are standard ones. For example, if the posting period is closed - the FM will not allow the Workflow to proceed further.
    But in this case, I have a custom error - for a particular Profit center, Cost center and I/O fields are mandatory(not at time of parking, but should be filled before posting).
    Since this is not a standard error, this FM will not stop workflow from proceeding further. How can I have the custom error captured in this FM?
    Thanks.

  • How to Create Warning or Error message for transaction

    Dear Gurus,
    I understand that we can create a new warning or error message. I would like know how we tie the transaction with these message.
    ex:
    I want to create a warning message in MIGO when i receive goods for PO. How do i create a message a tie the transaction to it.
    Regards,
    Kumara.

    Of course you can add own messages and message classes. But they will not be considered anywhere without proper coding.
    If you want a message to appear in MIGO then you have to find an user exit where you can put your coding that will issue your own messages.

  • How to programmatically set an error message for a validation rule of an EO

    Hello,
    Is there a way to programmatically set an error message when validating any data on an EO?
    It seems the API of the EO interface does not have any method to be defined for my needs..
    thanks

    The other option is that for the error message you can define a groovy expression to call an EO method.
    I documented this on my blog
    http://blogs.oracle.com/grantronald/entry/dynamic_error_messages_from_a
    Regards
    Grant

  • How can I get localized Error messages for basic errors ?

    I'm running JDK 1.6
    and I wrote :
    Locale.setDefault(Locale.CANADA_FRENCH);
                    try
                    java.io.File f = new java.io.File("c:/temp/xxnonexistentx");
                    byte aa[] = new byte[2];
                    java.io.FileInputStream fis = new java.io.FileInputStream(f);
                    fis.read(aa);
                    fis.close();
                    catch (Exception e)
                        System.err.println(" Err " + e.getLocalizedMessage());
            }And I get
    Err c:\temp\xxx (The system cannot find the file specified)why do I always get the US English error message. This is really a basic error, why does it seem that there is no localized version in French ?
    I also tried with
            Locale.setDefault(Locale.GERMAN);But I always get English �ber Alles !
    WHY ?

    As a developper I prefer my error messages in my
    langage. .NET does it (if I want), I like it. Do you
    know that O'Reilly & Flanagan Java reference book
    (1500 pages) in French sells very well in France ?
    Not so much the English version.As I said, I sympathize to some extent. With this part, yes.
    End-users do see some error messages (this file not
    found is an example), you want, me and all other
    people, to translate this type of messages in how
    many languages, each separately, over and over ?If I'm an end-user I don't want to see Java error messages. Or if I must, I only want to see them in the context of "This error message occurred, please pass it on to the technical support people when you call them". So, given that, I don't care if the system only produces German messages. This part I don't sympathize with.

  • Geting error message for optional field.

    Hi All,
    i have a issue as below.
    1) i have created a context node BUILIDNUMBER(Parent entity Header with relation ) for view BPHEADOverview   in BP_HEAD and in BUILIDNUMBER there is an attribute IDENTIFICATIONNUMBER.
    2) Initially this attribute was a manadatory field in Account Overview screen of IC Webclient and i changed it to optional as per requirement.In account overview screen of contact person this field is now shown as optional.
    3)But when we tried to save the record without PIN number(IDENTIFICATIONNUMBER) it's showing error like 'Enter ID Number' .Even after setting the value of ID type (ID type is IDENTIFICATIONTYPE of context node BUILIDNUMBER as in our case PIN number should be saved along with its ID Type  ) we are getting above error.
    4)We are setting the value of ID type as blank in Method SET_IDENTIFICATIONNUMBER if PIN number is empty but we are still getting the same error and i checked in  on save event method PIN Number and ID type is passed as blank.
                                               We are able to create BP in ICCMP_BP_DETAIL component without the PIN number in BuPaCreate view ,If  We fill PIN number for the created BP  in Account Overview screen (By editing) and save it    then the record is saved with the PIN Number successfully.But when we again make the PIN field blank and save the record in Account Overview Screen , It is showing error 'Enter ID Number'.                                    
                                 I am confused why we are getting error message even after setting Pin Number and ID type  as blank.For testing purpose  I  deleted the error message from bol core  and now error message is not coming but on save still PIN number field contains the previous value which i had earlier set blank .
                  Any helpful solution will be appriciated.
    Regards
    Snehasish

    resolved..

  • Online download Error message for ALL pdf.'s

    I continuously receive an error when downloading a pdf from online. The error message states: "There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again. (4:9)". When I close everything down, it still does not present the document...but when I try this action on any other machine in my office, it works... How can I fix the issue with my machine??

    Are these all the same OS, browser, and Acrobat version (including the updates)? It might help to tell use what versions of each you are using. Can you save the file and open it in Acrobat? Do you have both Acrobat and Reader installed?

  • Changing error message for mandatory field in me21n

    Hi,
    We had made the field "Collective no." of the additional data tab of the me21n transaction mandatory.
    We also change the name of that field to a custom name.
    Now if the user doesn't enter text in that field we get the error "Please enter Collective no.".
    I want to change the message to match our new field name.
    I checked in T100 for that message, but it's not there.
    Can anyone tell me from were that message come from, and how to change it.
    Thanks

    Hello,
    Tell us class and msg no so that we can find out coz it is pecular requirement.
    I suggest do not make it mandotary and dont change to custom field - give information message, place the cursor in field so user get message when he dont enter any value.
    yesterday we have discussed same we do not have any userexit - SAP direct modification required.
    PAI of the SAPMEGUI 1229 and MEPO1229-SUBMI field it contains value of collection no so just write your code there.
    *****Poorna********

  • How to create a error message for Deleted batch while creating a PO

    Hi ,
    Can any body tell me how to create error message for a deleted batch while creating a PO in ME21n,
    when a PO is created for a deleted batch at GI &GR lebel it is showing  a error message,
    but i want to show a error message while doing the PO creation.
    Thanks,
    Sachhi

    in badi  me_process_po_cust u can  put this message
    METHOD if_ex_me_process_po_cust~check.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
    Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
    http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
    It might also help if you post the exact error message, including the path to the flv file.
    '''Note:'''
    Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information.

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

Maybe you are looking for

  • Bridge cs3 mac 2.1.1.9 will not append metadata

    I've been using Bridge CS3 for a long time now on my iMac 2Ghz Core Duo (Tiger OS X 10.4.11) with 2 GB of RAM I have been using the same metadata template for a year, and have updated to Bridge 2.1.1.9 Starting today, whenever I try to append metadat

  • JSP newbie: local Sun Java System Application Server installation

    I am new to JSP and I am preparing to get the software I need. JDK 6 and Netbeans 6 are installed. Now I need an application server. Since the Sun tutorials use the "Sun Java System Application Server" I have choosen this one (version 9.1). As far as

  • Video playback on pc

    Can anyone let me know how to convert my videos on my 6300 to playback on pc/facebook

  • 10.2.0.3 to 10.2.0.4 upgrade

    Hi I need to upgrade the database from oracle 10.2.0.3 to 10.2.0.4 on Solaris. Please let me know if anyone have the document for it. Sandy

  • Question with pop up windows

    hi there, i have a page with a few quiz quesitons on it and i have a link to open up a pop-up box with the answer. however, in order to use the behaviors panel to make the link, i had to put a "#" sign into the text of the link. the problem is that i