Change default required inline message

Hi,
I am trying to change the default text that appear next to a component which i check as required. Instead of saying
Validation Error: "emailTextField": Value is required.
I want it to say:
Please Enter you email address
I tried to change the change the code according to what the customvalidator tutorial suggest:
String s = java.lang.String.valueOf(o);
if (s.equals(null)){
throw new ValidatorException(new FacesMessage("Please Enter Your email."));
I also tried this:
String s = java.lang.String.valueOf(o);
if (s.equalsIgnoreCase(""){
throw new ValidatorException(new FacesMessage("Please Enter Your email."));
neither worked whether i check required property for the text field or leave it blank. if i check it i get the default message, if i don't, i don't get any messages returned.
Please help!

My guess is that you have still set the 'required' property on the component, in addition to adding your own custom validator - and the required is throwing that message.
Did you see the new tutorial:
Customizing a Standard Validator Message
I think it does exactly what you are describing... give it a look!
v

Similar Messages

  • Possible to change default alarm from "Message with Sound" to "Email"?

    I was wondering if there is a way to change the default alarm when creating an event in iCal, from "Message with sound" to "Email". The option is not available in preferences, and I was just hoping that there might be a way to change the default, using Terminal, and if not, perhaps there is another way. If anyone knows of a way to accomplish this, I’d sure appreciate it.
    Thanks very much for your help.

    Your not alone - I'm also looking for a solution to this problem.

  • Changing Default Portal Error Message

    hi,
    How do I change most of the portal error messages ?
    For e.g.  when i disable the Development Component in the Web Dynpro Content admin to disallow user to access during code maintenance, i wish to inform them that we are doing some maintenance services.   How do i does that ?

    Check that the IGS is running properly...
    Also check SAP Note: 704604
    Regards
    Juan

  • Default required message customisation

    Dear Friends,
    Is it possible to change the default required message "You must enter value" to customised one in the entity level itself.
    At the same time, Component hyperlink also should get display.
    version iam working is 11.1.1.3.0
    Kindly tell me the solution.
    Regards,
    Lakshmar.B

    Hi,
    You can do it by creating your own message bundle which extends ListResourceBundle and adding the bundle entry in trinidad-skin xml file. Sample code is given below.
    *<bundle-name>view.resources.MyMessageBundle</bundle-name>*
    Add your message for the respective message key as like the below one
    *@Override*
    *public Object[][] getContents() {*
    *return new Object[][] {*
    *{"org.apache.myfaces.trinidad.UIXEditableValue.REQUIRED", "A value is required."},*
    *{"org.apache.myfaces.trinidad.UIXEditableValue.REQUIRED_detail", "You must enter a value."},....*
    Refer http://technology.amis.nl/blog/7127/adf-skinning-and-resources-2*
    Regards,
    vijhaykrishnaa

  • Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Simple/silly question: how do I set/change default font/color for outgoing mail messages?

    Just a suggestion..........
    Download Thunderbird.  Easier to use when it comes to what you want to do w/your emails. 

  • MS Outlook 2013 Error message "The microsoft exchange administrator had made a change that requires you to quit and restart outlook"

    I am currently running 2 HP Servers, SAN Storage. I have Exchange 2013 installed and MS Outlook 2013 randomly appears with the message
    "The Microsoft exchange administrator has made a change that requires you to quit and restart outlook" It is happening very frequently and is appearing every few seconds on a lot of users.

    Hi WeeMac22,
    If you migrated from Exchange 2010 to Exchange 2013, I found a KB for your reference:
    Outlook 2013 cannot connect after an Exchange Server 2010 mailbox is moved to Exchange Server 2013
    http://support.microsoft.com/kb/2934750/en-us
    If not, I suggest using OWA to verify whether this issue remains.
    1. If everything works well in OWA, it seems an issue on the Outlook client side.
    I suggest run Outlook under safe mode to avoid some AVs and add-ins.
    I suggest re-create profile to refresh the caches.
    I suggest re-install the Outlook if all methods above not working.
    2. If this issue remains in OWA, please verify whether all users on the Exchange 2013 have this isse.
    If only one user has this issue, I suggest create a test user to check whether the test user has this issue.
    If the test user works well, I suggest try to re-create the specific user account.
    Please make a full back up before re-creating.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • The Microsoft Exchange Administrator has made a change that requires you quit and restart Outlook - error message

    I applied Exchange Server 2013 SP1 and since then some users are getting error message:
    'The Microsoft Exchange Administrator has made a change that requires you quit and restart Outlook' on their MS Outlook.
    Have tried a number of options including repairing the affected user accounts to no avail.
    Any idea on how to resolve this will be appreciated.
    NB: This error was not there before applying SP1.

    kindly need help. i have same message "'The Microsoft Exchange Administrator has made a change that requires
    you quit and restart Outlook' on their MS Outlook"
    this is comes after applying 2013 sp1

  • Message no. IW056 Work center change -- default data redefined

    Hi,
    After EHP5 Upgrade. I am getting Message no. IW056 Work center change --> default data redefined during Maintenance Order Change (IW32). Please suggest me Is their any SAP Note or any Configuration setting to fix it.
    Regards
    Maheboob
    Please use [Enterprise Asset Management (EAM)|Enterprise Asset Management (SAP EAM); forum for PM/CS specific topics
    Edited by: Paul Meehan on Oct 25, 2011 11:56 AM

    Hi Maheboob
    Im glad the note worked -
    To find the note , you could do a note search on the message  IW056  you  received and the support pack level you are on ..
    For EHP5 the note is valid up to  SAPKH60504.
    The  IW056   is listed as a keyword so if you search on it the note should be returned.
    Thanks-
    Enda.

  • Change default in "Run Rules Now" to Read Messages

    I have a set of rules that I run to deal with messages I have already read and move them to the appropriate folders.  I run the rule manually but sometimes forget to change the "Apply rules to:" option to Read messages.
    Is three  a registry key or other setting I can configure so that the default is Read messages rather than all messages?
     

    Hi,
    We can't change this by any setting or registry. We need to pay additional attention when doing this.
    Regards,
    Melon Chen
    TechNet Community Support

  • Cutomize your own inline-messages

    hello to everybody.
    I am trying Studio Creator.
    I put into my jsp's page an "Inline message" component and set the property to one TextField component.
    The pourpose of this is to show a message if the user inputs a bad value.
    It works.
    If the user inputs a bad value, it appears a message like this:
    " Error de Validacion: Valor es necesario." ( Validation Error: Value is required)
    but this message is awfull !
    how can I change the default message to show anything like this? :
    " Introduzca un numero entre el 1 y el 5 " ( Input a number between 1 to 5 )
    thanks a lot (and sorry for my english).

    Hi Gonzalo,
    es f�cil cambiar la aparici�n de los mensajes :
    - presiona el "inlineMessage" en el panel "Application outline"
    - observe las propiedades del elemento
    - grupo "appearance" -> errorStyle = puedes cambiar el estilo :-)
    it is easy to change the appearance of the messages:
    - outline presses "inlineMessage" in the panel "Application"
    - look for the properties of the element
    - group "appearance" -> errorStyle <<< you can change the style
    J�r�me
    Sorry for my spanish / english, i'm French :-p

  • Inline Message with non english language....

    we can see the properties file in the properties file like
    javax.faces.component.UIInput.REQUIRED=error:{0}.
    so it will show the message like "textfield1 " value is required.
    but i want it shows "mytext"<--japanese value is required..
    it looks like that the error message's {0} is read the components id.
    so i need to change the code like set&#12508;&#12479;&#12531;() or get&#12508;&#12479;&#12531;()..
    its really a bad solution........
    may i let the inlin message get the component's title for the textforamt's {0} ?
    thanks
    and
    best regards
    koji

    You -can- change the builtin required-validator message, and there's a tutorial written on that that I think will be posted shortly; but you are basically providing a new bundle value for the builtin required-validator's key, so you don't have the chance to supply additional parameters to the message. So if you want to insert the title property or any other property or computed string, you need to do your own validator.
    P.S. It's not hard. At JavaOne I showed how to do one during James Gosling's keynote demo; the Creator demo was just 5 minutes or so and in that time I wrote a simple credit card number validator, deployed it and verified the results in the browser. You can see the keynote here:
    http://www.sun.com/aboutsun/media/video/javaone/gosling.html
    -- Tor
    http://blogs.sun.com/tor

  • The Microsoft Exchange Administrator has made a change that requires you quit and restart Outlook

    Hi
    We have 2 separate Exchange 2013 organisations in Our Company. All mail comes in on the first server registered With domain1.com and if it is mail Connected to the second server it is forwarded to server 2 which is registered With domain2.com.
    When the users Connected to server 2 sends out mail they have default mail address firstname.lastnameATdomain1.com  so the default address policy points to an email address registered on server 1. We have added a GPO for the domain2 users so that
    Autodiscovery updates with the right domain name.
    The problem is that every time a user With Outlook 2013 starts Outlook he gets an error saying "The Exchange administrator has made a change that requires you quit and restart outlook". This Message shows about every 10 minutes in Outlook. I think
    this has to do With the autodiscover settings, but I'm not sure.
    Any Idea how to remove this Message?
    Regards
    Anders

    Hi,
    From your description, I recommend you follow the steps below to repair the Exchange email account and check the result.
    1. Start Outlook. Click File, Account Settings, and then click Account Settings.
    2. With the Exchange email account selected, click Repair. In the Repair Account dialog box, click Next.
    3. After the configuration finishes, restart Outlook.
    After you restart Outlook, the status bar may show your status as Working Offline. To connect it, click the Send/Receive tab, and then click Work Offline to turn off this feature.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • [svn:fx-3.x] 10868: change default value of selectable in ASDoc comment to true

    Revision: 10868
    Author:   [email protected]
    Date:     2009-10-05 11:05:50 -0700 (Mon, 05 Oct 2009)
    Log Message:
    change default value of selectable in ASDoc comment to true
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: -
    Tests run: - checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/TextArea.as

    Thank you much for your response.
    I tried that and it did work. But my requirement is to have a user input the date. The basic idea is if the user decides on a predefined time range like Day Shift Today or Yesterday and so on... then the report would automatically calculate the values based on predefined date time values. On the other hand, if the intent is to run the report for an arbitrary period then the user supplies the date and time limits.
    What I am trying to achieve is have the same parameter available for user input , but when the User decides he wants Predefined then the "textbox" populates with date and time as per his choice of predefind range.
    I understand that by this the user can still overwrite the date and time on the text box, but the report will run the predefined values as long as he has the @PredefinedDateSelection Set to true.
    Is there a way I can impement this?
    Once again I thank you and appreciate  your input.

  • How to change default thresholds for some metrics of all targets.

    Hi!
    We have a lot of servers which have to work hard.
    So, our OEM very often generates messages like these:
    "EM Alert: Critical:dbsora90.tsb.kz - CPU Utilization is 99.95%, crossed warning (80) or critical (95) threshold."
    "EM Alert: Critical:dbsora94.tsb.kz - Disk Device c8t60A9800043346C384C344A4A63516D6Ad0(ssd4) is 99.7% busy."
    "EM Alert: Critical:dbsora94.tsb.kz - CPU Load (Run Queue Length averaged over 5 minutes) is 20.78, crossed warning (10) or critical (20) threshold."
    I need to change default tresholds for mentioned metrics but I can't their defenition in SYSMAN.MGMT_*-tables or suitable settings in OEM GUI.
    And I have no time to edit treshholds manually for each target. )

    Modification of Metric Thresholds (as this is what you are referring to), should be done using the Metrics and Policy Settings link (to be found in the Target Home page).
    Don't mess around with the SYSMAN tables!
    Best thing to do here is to start using Monitoring Templates for this.
    Check:
    Oracle® Enterprise Manager Concepts
    11g Release 11.1.0.1
    http://download.oracle.com/docs/cd/E11857_01/em.111/e11982/toc.htm
    Regards
    Rob
    http://oemgc.wordpress.com

  • How to change default output XMLP report  to rtf/excel !

    I used xmlp 5.6.2
    The default output for report is pdf file.
    Now i want to change default output to rtf or excel file
    Please ! help me !

    Hi Brightsea,
    We customized the code in FNDRSRUN.fmb, But we are not able to get the output in RTF format.
    Our requirement is to display the report output in .rtf or .xls(Not required to defaultly as .rtf or .xls).
    we are getting the following error.
    "The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'http://galaxian.bluestar.cvg0:8000/OA_CGI/FNDWRR.exe?t...
    {\rtf1\ansi\deff0"
    ^
    Regards,
    suresh.

Maybe you are looking for