h:messages   in red color font.

Hi all, i am new to JSF. I need to display error message in red colored font. I am wrote following code, but still, i am getting error message in black color.
<h:messages errorStyle="font-color:red" style="size:15px;color:red;" />Can any one please help me to get red colored font error message.
Regards,
Ash

Hi Ashvini !
Please see this code !
<h:message>, <h:messages> with red, green, blue colors:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
  .ashvini {
    color: green;
</style>
<title>Insert title here</title>
</head>
<body>
<f:view>
<h:form id="form1">
<h:inputText id="nev" value="#{urlap.nev}" required="true" />
<h:message for="form1:nev" style="font-size: 13px; color: red;" />
<h:message for="form1:nev" errorStyle="font-size: 13px; color: blue;" />
<h:message for="form1:nev" styleClass="ashvini" />
<br>
<br>
<h:commandButton value="Rendben" action="ok" />
<h:messages style="font-size: 13px; color: red;" />
<h:messages errorStyle="font-size: 13px; color: blue;" />
<h:messages errorClass="ashvini" />
</h:form>
</f:view>
</body>
</html>

Similar Messages

  • Red color font

    Hi,
    The requirement is to have red color text message on the selection screen of a report.
    Is that possible?

    Hi Kumar,
       Please go through the below link for displaying of colors in Lists:
       http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba1ae35c111d1829f0000e829fbfe/frameset.htm.
    Reward with points,if it is useful.
    Regards,
    Prakash.

  • Want to dislay amount in red color

    Hi,
    I am working on Dunning Forms(SAP script). The requirement says, that the amount field should be displayed in Red color font, however they will take a color printout, but how do i assign the color to a font type in SAP Script.
    If anyone has any idea about this, please share your knowledge.
    Thanks,
    Sneha Soni.

    Please have a look at below links. May be useful to you.
    [Print Controls|http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a95e351ea11d189570000e829fbbd/frameset.htm]
    [Description of all SAPscript Print Controls|http://help.sap.com/saphelp_nw04/helpdata/en/b1/fd1042ea8711d18e310000e83dd9fc/frameset.htm]
    I hope it helps.
    Best Regards,
    Vibha
    Please mark all the helpful answers

  • Message appears in color red "low mem warning" what is it?

    When i was playing "injustice" the new popular game in the app store, a message appears in color red "low mem warning about "" min" what is it? What i can do? Is dangerous?

    It must be a setting in the game itself. That is a warning that the iPad is running low on accessible memory in order to function properly in the app. In this case the game is letting you know that the iPad resources are being stretched and the game could crash. It might not, but the possibility does exist.
    Is it harmful to the iPad? Not really, but it could pi** you off if you are in the middle of something in the game and the app crashes and you lose progress or achievements. I have no idea what the game is about.
    You could try closing apps in the recents tray and see if that helps - although that is not supposed to matter in iOS.

  • Display Display value in Red Color in Pop Up List of value Item

    Dear All,
    i have created an Pop up List of Value item.I need to display Display value in Red Color in Pop Up List of value Item.
    What should i pass in HTML Form Element Attributes .I have try using
    style="font-color:red";That code.
    How can i display Display Value in Red Color.
    Thanks

    Is this what you are looking for?
    http://apex.oracle.com/pls/apex/f?p=42778:12
    If so..
    * Go to Shared Components -> Templates -> Select Type as "Popup List of Values"
    * Edit Popup LOV template
    * See the class name being used for div under Result Set section. In My case, its t1PopupBody
    * Under Page Attributes -> Page HTML Head section append following CSS
    <style>.t1PopupBody a{color:red;}</style>* Apply Changes
    If its not working, then inspect the pop-up lov with firebug and update CSS definition accordingly.
    Regards,
    Hari

  • With DB02 tcode, DB file in red color & status gives No free space

    Hi Experts,
    With DB02 transaction --> in File tab it is showing all Database files with red color and in the status message gives "No free space in file".
    Below is details for your reference
    Logical file name used by SQL Server:  DEVDATA1
    File size in MB: 30.220
    SQL Server FILE ID      1
    Next file growth(MB)     3.022
    Physical file name of the database file     E:\DEV\SAPDATA\DEVDATA1\DEVDATA1.mdf
    Allocated MB     30.167
    Free on file system (MB)     86.284
    Growth Setting     10%
    File size limit in MB     no limit
    Filegroup name     PRIMARY
    Status Message     No free space in file
    FLPRIM     X
    FILE GROWTH PERCENT     X
    Kindly reply what action we have to perform to change the file status.
    Regards,
    JP

    Hello Jigar,
    I had the same problem, I found this help file:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/f2/31ad9b810c11d288ec0000e8200722/content.htm
    It helped me solve my issue, I increased the size of the files as recommended and their status in DB02 changed to green.
    Hope this helps you.
    Regards,
    Chris

  • Adapter engine in red color status

    Dear All,
           I got pi production system.When i verified componenet in RWB everything is fine except adapter engine.
    Adapter Engine in red color status.Error in Are registrations of connections and protocol handler without errors?
    I clicked on details.Please see below
    13 of 23 connection(s) registered successfully(it was showing 5 of 23 success after i restarted it's showing 13 of 23)
    8 of 8 protocol handler registered successfully
    Connection registration failed for connection BC_http://sap.com/xi/XI/System on node 106310950 due to: Failed to register connection BC_http://sap.com/xi/XI/System. Reason: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Failed to load messages into Queue BC_http://sap.com/xi/XI/SystemRecv from database. Reason: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException occurred in method ConnectionFactoryImpl.getConnection(): javax.resource.ResourceException: (Failed in component: dbpool, BC-JAS-TRH) Cannot create connection.
    Possible reasons:
    1)Maximum allowed connections to DB or EIS is reached. You can apply CSN Note 719778 in order to check and resolve connection leaks.
    2) Configuration to DB/EIS is wrong or DB/EIS is temporary unreachable
    3) Connections are not enough for current load.
    I tried many ways to resolve this problem unfirtunately i couldn't.Whether this gives any issues i mean shall i ignore this if not please suggest me to resolve this.
    Thanks in advance
    Regards
    Kumar

    Dear Team,
    I am facing the same issue in SLD(PI Java Stack).
    Please find below snapshot. Please Help. Many Thanks .....

  • Can we chane the restricted mode warning message to red"

    can we chane the restricted mode warning message to red"

    The red color indicates an error and not a warning message (I do not think you can change the color).
    Thanks,
    Hussein

  • New output type Shows Red color

    Hi,
    I have configured the new o/p type Zxxx , the Driver Program everything is configured,
    but when i try to Print the the Document the status is red color even though the document gets printed.
    Not able to figure out the error.
    with rgds
    Ranjith Singh

    Hi Ranjith,
    This is how I debug output type message related issues :
    i) If you get red coloured message against the output type - Put the breakpoint in FORM ENTRY of your print program and check the RETCODE variable. Also check the sy-msgid, sy-msgno variable.
    ii) If you get red coloured light after pressing messages button. These Messages are updated using 'NAST_PROTOCAL_UPDATE' fm. Put a breakpoint in the function module and find out the cause.
    Regards
    DPM

  • HT2954 In Mail Preferences Color & Fonts I select Georgia Bold Italic 14 for all fonts. Why do I only get Georgia 14 when writing?

    In Mail Preferences>Color & Fonts I select Georgia Bold Italic 14 for all fonts. Why do I only get Georgia 14 when writing messages/replies?

    Have you checked “Use classic layout”?

  • Request status in RED color.

    Gurus-
    I am loading the data from Data Stage to BW.
    First load went thru with out any errors. When Data Stage team scheduled load for second time then I see Red indicator in "Request Status" as well as in "Status" tab.
    When I go to details tab I see RED in "Extraction (messages) : Errors occured", Transfer (IDOCS and TRFC) :Errors occured and "Susseq. Processing (message)".
    When I expand " Extraction (messages)" I see "1000 Records sent (1000 records  received)" in red color.
    and if I expand "Transfer ( IDOCS and TRFC)  "it says "Data Package 1 : arrived in BW ; Processing : 2nd processing step not yet finished "" in red color. all the Info IDOCS are in green color.
    But I see Transfered and added records in mange screen of DSO. Can I activate the DSO by changing the indicator to green from red?
    Pls suggest with ur valuable suggestions..

    Hi,
      In the monitor right click on the data package1 and do a manual update.
    Jaya.

  • ShortTip Type Text in RED Color.

    By Default shortTip Type Text is Blue Color. I am looking its behaviour for shortTip Text with Red Color. How one can do this?

    I don't see any reference to the runtime control of short tip text. Field-level hints/short tips can be configured only for those beans whose name begin with message and they get attached to those bean without a node Id of their own which makes the scenario tough for us.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Apple has many windowlets:"About this Mac", "Inspector", "Colors", "Fonts", "Find

    Apple has many windowlets:"About this Mac", "Inspector", "Colors", "Fonts", "Find & Replace". None has a yellow 'Store' button;
    only a red 'Delete' button. This is deeply uncool; don't u agree?.

    Apple has many windowlets:"About this Mac", "Inspector", "Colors", "Fonts", "Find & Replace". None has a yellow 'Store' button;
    only a red 'Delete' button. This is deeply uncool; don't u agree?.

  • Red color problems in LR 4.1

    Have LR 4.1, CS6, Windows 7, use AdobeRGB1998, PSD, color managed with Eye one display 2, RAW images.  Rarely take photos of red subjects, so have not seen this problem before now......wedding with 10 bridesmaids in "coral" dresses has uncovered a problem.  Am seeing difference in red colors within LR, from the Library to the Develop mode/views they are different..  When saving PSD to the web as sRBG, colors of red are garrish, not at all true to the original PSD doc.  Sending jpegs to Walgreens for my family shows very wrong colors, ranging from pink to orange to too-red.  Anyone else having these problems?

    Go into your develop panel and softproof one of these images for sRGB. Turn on the monitor and profile gamut warning. My guess is that the red color is outside both your monitor and sRGB. This will give rise to very large color shifts easily especially in highly saturated colors. The only thing you can do about it is to bring them back into gamut. There are many tutorials on the web on how to do this. One example is here: http://tv.adobe.com/watch/whats-new-in-lightroom-4/soft-proofing-images
    Or this excellent one from Andrew Rodney: http://digitaldog.net/files/LR4_softproof2.mov

  • Print a document after I change color font

    Hi,
    i have adobe reader 9 pro and I want to print a document here i modified the color fonts.
    In the screen,the colors of fonts are changed and also in the prevew print,but I can't print with the new colors.
    why

    sniffters wrote: How do I set preferences to allow me to print a document of black alphabetics a different color?
    Hello sniffters, It appears you would need to change the color of the text in the program that the text was created in.
    I know of no printer setting, other than color and black and white, that can be made in the prinrer settings section..
    Please click the White Kudos star on the left, to say thanks.
    Please mark Accept As Solution if it solves your problem.

Maybe you are looking for

  • Imessage is not working my id is verified

    i have 4s i have 2 problems 1- my imessage setting is ok phone no and id is verified bu in message window imessage is not going 2- as i feel id in face time it show "id is used by another device" how i remove my id from it regards naeem ahmad

  • Error Warning MSG in Process Chain

    Hi PPl,        I created a PC which loads from APO into ODS and then into an INFOCUBE. But when i check the PC it says the following error msg. A type "Update ODS Object Data (Further Update)" process cannot precede process "Execute InfoPackage" var.

  • IS PAPI/PAPIWS the only way?

    Hello, I know this sounds crazy... Please assume there is regular JEE custom application and currently neither participating in BPM nor exposing any services. This application is likely to be continued for a longer period of time. Now this applicatio

  • Oops programming in abap

    hi,    i need oops programming in abap where in i need only programmin and coding tecnique strictly(dont want theory)means where oops programming needs in reporting,alv and bdc ,i need only programming related material,so if any body having the conne

  • What's with all the updates?

    It seems that every time i launch itunes, i'm told of some new available update? when i first started using itunes + ipod, there didn't seem to be this constant need to drop the latest bits (30 plus megs) on my HD. Am i doing something wrong, or is A