Show only with error messages

How can I have this: <div class="userMessage"> show up in my page only if there are any error messages to display? I have tried to to bind an outputText to my backing bean like this:
JSF page:
<h:outputText value="<div class=userMessage>" id="userMessage" binding="#{Registration.userMsg}" rendered="false"></h:outputText>Backing Bean:
UIOutput userMsg = null;
UIGraphic errorImg = null;
public UIGraphic getErrorImg() {
          return this.errorImg;
     public void setErrorImg(UIGraphic errorImg) {
          this.errorImg = errorImg;
public UIOutput getUserMsg() {
               return this.userMsg;
     public void setUserMsg(UIOutput userMsg) {
          this.userMsg = userMsg;
Iterator it = facesContext.getMessages();
               if ((it.hasNext()) && (errorImg.isRendered() != true)) {
                    errorImg.setRendered(true);
                    userMsg.setRendered(true);
               }I am doing this with showing an image next to the errors, and it works fine. I get an error on the jsp page that the value cannot have <. How can I get this to work?
Thanks

Ok, I have tried this, but It is showing my table with the style, when the page loads up, but it shouldn't show this table because the rendered is equal to false:
<f:subview id="userMsg" binding="#{Registration.userMsg}" rendered="false">
                                             <table id="userMessage" >
                                                  <tr>
                                                       <td valign="top">
                                                            <h:graphicImage id="errImg" binding="#{Registration.errorImg}" rendered="false" url="images/msgicn_error.gif"></h:graphicImage>
                                                       </td>
                                                       <td>
                                                            <h:messages styleClass="labelError" id="errmsgReg" layout="table" ></h:messages>
                                                       </td>
                                                  </tr>
                                             </table>
                                        </f:subview>

Similar Messages

  • I downloaded Lion and  have attempted to 'updat' it from apps to my imac... after 3 hours of uploading it show mw an error message saying there's something wrong with my internet connection... which there is not. Anyone else experience this?

    I downloaded Lion and  have attempted to 'update' it from apps to my imac... after 3 hours of uploading it show me an error message saying there's something wrong with my internet connection... which there is not. Anyone else experience this?

    What type of Internet connection do you have?  How fast is it?

  • I had to reboot my iMac, it froze... When I went to reboot it started up as usual... Made power sound, showed apple logo (white screen)... And pin wheel started after 3 to 4 mins., went tblack screen with error messages. Rebooted 5x, won't go paspinwheel

    I had to reboot my iMac, it froze... When I went to reboot it started up as usual... Made power sound, showed apple logo (white screen)... And pin wheel started after 3 to 4 mins., went to black screen with error messages. Rebooted 5x, shot off power source, disconnected external devices... Now won't go past pinwheel... Since it does not go to black screen, I cannot convey error messages... Please advise what I could try... Thank you... I have an iMac 2009... Upgrade operating system to new system this spring... Don.

    It is guitardad's again... I read past topics on this issue... As I am not overly computer savvy, I want to be careful that I don't mess things up further... Of course the extended warranty is done... There is talk about booting from the system disc...  I'm not sure if this is the first thing to do or not... Can the support community, advise me on what logical steps I should take ( in order) or direct me to a website and/ or you tube video that walks one safely through the processes... Once again thank you for reading and offering your advice... I am on fixed $$$ so I'm trying to avoid calling apple, unless I have no options and/or the suggestions do not resolve the issues... Tx again Don.

  • Turn off "Show friendly HTTP error messages" programmatically

    Sorry about uncomplete title in the last post.
    If IE's Show friendly HTTP error messages is on, HttpServletResponse.sendRedirect("<web site address>") doesn't work for some <web site address>. Can we detect the setting or is there a
    way to turn it on programmatically?
    Thanks,

    I do not believe that the setting has anything to do with your code not executing properly. That particular browser setting should not impact whether a URL is accessible or not.
    That having been said, you would need to write to the user's registry. You could only accomplish this if the user either browsed to a page with an applet or downloaded a standalone Java application to change the settings. As the latter option is not a good one, you are stuck with an applet. You would need to override the Sandbox security restrictions by signing your applet's CAB.
    - Saish

  • I bought a Mac Book Pro retina display, Serial Number  C02J2****2, on 8/11/2012. Unfortunately, I am unable to download updates from the App store.Whenever I tried to download updates, it shows me an error message, "we could not complete your request. t

    I bought a Mac Book Pro retina display, Serial Number  C02J*****2, on 8/11/2012. Unfortunately, I am unable to download updates from the App store.Whenever I tried to download updates, it shows me an error message, "we could not complete your request. there is an error in the App Store. Try again later (100). Your Apple ID has been disabled, contact iTune support". However,the problem still persists even after my password has been successfully reset. What is is the error in the app store? I really need help to resolve this issue.
    Moreover,I also need help how to update to the mountain lion free of charge as my Mac pro is four(4) days old.
    Sincerely
    Asrat Kahsay
    N.B. I'M not exactly sure the operating system is "Mac OS X v10.7.x". However, I do know for sure it's Mac OS X v10.7.4
    <Edited by Host>

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    The OS X Mt Lion up-to-date program;
    http://www.apple.com/osx/uptodate/

  • The way I deal with error message 1417, 1418 and 1428

    Firstly, sorry for my poor English, but I would like to share with you my experience, and hope that it may helps you.
    Since the release and update of iTunes 7, I have not faced any problem, but I heard a lot of articles from this forum about the errors 1417, 1418, 1428 and 50 etc. I could not make any suggestion and find a solution about it, all I could do is to copy some threads from some successful cases mentioned on this forum.
    Until yesterday, I finally received a 4th Gen 20GB iPod (around 2 years old)from a friend and asked me whether I could fix it for him, which has been left untouched as a paper-weight for almost 2 months.
    I tried to turn it on, and the screen was completed blank and the device looked dead. Before doing anything I prepared the following:-
    1. A window based PC
    2. A Mac computer
    3. An USB iPod cable
    4. A Firewire iPod cable
    5. An iPod AC charger
    As the iPod was previously formatted on a PC, therefore I tried to plug it with a PC via USB cable, it did not response and not able to get recognized by the PC. I ejected the iPod and connected with an AC charger, after a few minutes, I did a Reset for the iPod
    How to reset iPod
    http://docs.info.apple.com/article.html?artnum=61705
    The iPod showed an Apple sign, it stuck there for almost a minute, the screen then showed a battery with an exclamation mark sign, and after a minute, the iPod turned off itself. I was sure that the iPod carried very low battery, and could not be charged by connecting it with any computer (both Mac and PC).
    I decided to let it have a charge with an AC charger for a bit longer, after 10 minute I did the Reset again, this time a sign of folder with exclamation mark showed up after the Apple sign, and again could not get recognized by a computer.
    I changed my mind, and put the iPod into disk mode
    Putting iPod into disk mode
    http://docs.info.apple.com/article.html?artnum=93651
    Instead of connecting with a PC, I plug it with my Mac using a Firewire cable, it did not response, so I switched the cable to an USB, interestingly, the iPod got recognized and a window pop up indicating that the iPod needed to do a Restore. Therefore I clicked “Restore”, after a few seconds, an Error message pop-up with Error Message 1417, the sign that I have been waiting for quite sometime.
    I ejected the iPod and the screen immediately showed a folder exclamation mark (a sign indicating a corrupted or a failure iPod OS). I am forced to put the iPod into disk mode again, connected with the Mac computer and open the Disk Utility
    1. Open the disk utility, hope your iPod appears there (left hand side), highlight it
    2. Go to Tab “Partition”, click either “Delete” or “Partition”, if fails, skip this step and go to 3
    3. Go to Tab “Erase” , choose Volume Format as “MAC OS Extended (Journaled), and click Erase, again if fails, skip it and go to 4
    4. Same as step 3, but open the “Security Options....” and choose “Zero Out Data” before click Erase. It will take 1 to 2 hours to complete.
    5. Eject your iPod and do a Reset
    6. Open the iTunes 7 and click “Restore”
    It managed to complete the Restore process, and started to sync with the iTunes. However, it got stuck at the song no.238 from the total of 2000. I left it for an hour, but with no process, instead the iPod became “Hot” and the iTunes showed an Error message of 1428. I ejected the iPod from my Mac computer, the iPod’s screen turn to show the famous killer icon;“The Sad iPod“.
    This time it was totally dead, even failed to put it into Disk Mode and non of the computer could recognize it. Sigh, I hated to do it but I knew that I must did the following:-
    Holding the iPod in my Palm, and hitting it on a surface of a Sofa with 5 attempts.
    Did not surprise me, the iPod turned on and it showed the Language Menu on the screen. So, I put it into Disk Mode and connected with my window PC.
    The PC showed a sign and indicated that an USB device had been connected with it. I opened the iTunes and did a Restore there.
    However, an Error Message 50 showed up, but I were not worried about it, connected it back with my Mac computer with it in Disk Mode. As expected the iTunes opened and allowed me to do a Restore there.
    This time it managed to complete the process and a window of register pop up. After the completed the process, the iPod started to sync with the iTunes again, which finally managed to complete the process.
    I left it connecting with the AC charger overnight. In the next morning, I switched it on and have a play with it, I am so glad as it is working like a charm.
    From the above experience, I would like to share it with the user the following:-
    1. It always better to charge with an ac charger instead of the computer, as when an iPod carrying with very low battery, it may not able to get charge from a computer
    2. Try to connect the iPod with a computer, switching between USB and Firewire
    3. Try to format an iPod with HD problem, with a different kind of computer e.g. Mac or PC, as the formats are totally different, the way it formats may able to solve the bad sectors on the HD
    4. It may get better chance to get your iPod recognized, if you put it in Disk Mode
    I hope the following works in your case as I did.

    a pop up error message says itunes couldnt be configured
    I'd like to have a closer look at that error message please.
    Generate the error message again. While the error message box is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file.
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • TS3297 every time I try to download iTunes in my new computer it shows me an error message

    Every time I try to download iTunes in my new computer it shows me an error message that says The installer has insuffucuent privileges to acces this directory C:/program files (x86)/iTunes. The installation cannot continue. log on as administrator or contact your system administrator.. retry or cancel and it doesn't le me go forward than this I have already contact HP and we fixed it I mean we installed iTunes 64 bit, but the minute I put my iPhone to sink it it says that I dont have the new version of iTunes whici I've just already installed..this problem has been like this for more that 3 months I need an assitance because my phone really needs to be sink because it is acting weard and slow... Other than that my husband and I are thinking seriously change our iPHONE 4S for samsung phones with less probles instead of buying the new iPhone 5 because of this dull reason...Thank you for your help!

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • IDOC_INPUT_ORDERS with error message RV45A-VBAP_SELKZ (2) is not input fiel

    Hi
    I am creating a multiple line sales order from Idoc and using the FM IDOC_INPUT_ORDERS. The idoc is processed with status 51 with error message RV45A-VBAP_SELKZ (2) is not input field.
    It only happens for Idocs that are processed 1st time (re-processing is succesfull) and only in the background (if processed first time in foreground - it is ok).
    Have you ever seen this message?
    Thanks,
    Magda

    Hi Joy
    Thanks for an idea of creating a BDC from bdcdata before calling VA01 from an IDoc. I could analyze it and to correct an error I added some code in the user exit ZXVEDU04. I simply replaced all concurrencies of RV45A-VBAP_SELKZ (2) with RV45A-VBAP_SELKZ (1) and it worked:
    * MW Replace RV45A-VBAP_SELKZ(2) with RV45A-VBAP_SELKZ(1)
    move dxvbak to i_dxvbak.
    if i_dxvbak-bsark = 'WINT' and dxbdcdata-fval eq 'SICH'.
      dxbdcdata-fnam = 'RV45A-VBAP_SELKZ(1)'.
      modify dxbdcdata transporting fnam
       where fnam = 'RV45A-VBAP_SELKZ(2)'.
      exit.
    endif.
    This is called only once when dxbdcdata-fval = 'SICH'.
    Hope it helps.
    Magda

  • REP-56071: Security check failed with error message: Error code30009 - Gene

    REP-56071: Security check failed with error message: Error code30009 - Generic access check failed..
    Hello,
    I am also receiving the above error - these reports are deployed on our Portal - to which all registered SSO users should have access to.
    one more thing...
    We obtain the error only when execute under some "load", example: 15 reports running simultaneously.
    Tx,
    Diego.

    I am also facing this problem - I've deployed the reports on the Portal and authenticated users can access the reports.
    The problem is that when any authenticated user tries to access the report, on his very first access this error is shown.
    REP-56071: Security check failed with error message: Error code30009 - Generic access check failed..
    But after the user click on the Personalize link of the portlet and specify the parameters values(which are empty initially) then report runs fine.
    Plz let me know the solution as no user will like to see this error message for the first time he opens the report.
    Regards.

  • Custom reports do not run with error message: Routine FDPREP cannot read ..

    Hi
    Can anybody help me with this issue pls?
    The dev system is cloned from production a few days ago. After running the post clone procedure, the dev is working fine except when we are trying to run custom reports, it errorred out with error message - Routine FDPREP cannot read the file /fmis/11.5.0/reports/US/POXPRPO1.rep. I have checked the env files, and they seem ok. $CUSTOM_TOP is set to the correct value. Other standard Oracle reports are running properly. The custom report file extension is in low case (.rdf). I've even tried to compile the report manually by using rwcon60.sh, the rep file was created under that folder but concurrent manager is still giving the same error message. So I am suspecting whther it is the path issue, as from the error message we can see up there, it is not showing the absolute path. Can anyone pls shed some lights on this for me?
    Thanks!
    Liang

    Hi hsawwan,
    Echo $FMIS_TOP(Custom Top) returns /global/app/fdev/home/fdevapp/findevappl/fmis/11.5.0, which is the correct path.
    Interesting thing is I checked the custom forms and they are working properly , our current configuration is form server and web server are sitting on one node, and CM, admin and database are sitting on the other node. So it seems it is the CM node settings caused the problem. However, I've just compared the APPSORA.env, customfindev_XXXXXX.env $FMIS_TOP (Custom Top) on the two nodes, and nothing seems out of ordinary.
    Thanks,
    Liang

  • Internet Explorer - "Show friendly HTTP error messages"

    I have configured a servlet within web.xml to handle exceptions, and my servlet is indeed triggered when an exception occurs.
    My users are all running Internet Explorer. By default the advanced setting "Show friendly HTTP error messages" is enabled, which causes them to see an ugly MSIE error page rather than my carefully crafted servlet.
    They could see the awful exception pages Tomcat was handling out previously, which is why I set about making this change in the first place.
    I believe that Tomcat was not adding an error code header to the exception page it was handing out on my behalf, but now that I've taken over exception handling the response contains a code 500 response. (My best guess, anyhow.)
    I was going to simply strip this code out of the response, but upon inspection of the HttpServletResponse object, there is no method for doing such a thing.
    Is anyone familiar with this issue? Can anyone recommend a solution?
    Meanwhile, I'm off to continue scouring the forums before I start Googling again. =)
    Thanks!!

    Well, those "friendly" errors have to be based on the response code for the page. So if you have your own error handling returning a page, then you could return a 200 response code with whatever error content you want.
    For all practical purposes, the response code isn't very useful to users or browsers except for a few special ones maybe. But just because it's an error page to your web app doesn't mean it's an error for the browser. Those error codes are really meant for the HTTP protocol.

  • Blackberry Desktop keeps closing with error message

    I am trying to synch my Blackberry Bold but the Blackberry Desktop keeps closing on me.  I have tried installing the latest version of the software but even after doing that I am having the same problem.  Help!

    Hi and Welcome to the Community!
    Unfortunately, while you said "with error message", you neglected to actually say what that error message is...hence, we must guess...I suggest this thread:
    http://supportforums.blackberry.com/t5/Desktop-Software-for-PC/Cleanly-quot-Starting-Over-quot-with-...
    It starts with a process for cleanly starting over, and there is some discussion, and there is also a post (15) with links to older Desktop Software versions, if those are needed. Note that this is not, by any means, guaranteed to work...but it has worked for many to resolve issues they are having.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My Mac OSX is coming up with error message when i try to write a disc "The disc can't be burned because the disc drive is not accessible (error code 0x80020020)." Same also when I tried my external disc writer-any clues?

    My Mac OSX (version 10.7.5) is coming up with error message when I try to write a disc "The disc can’t be burned because the disc drive is not accessible (error code 0x80020020)." I have tried several discs with the same message - Same also when I tried my external disc writer. Both disc drives will read my discs that have music or photos on it, it just won't write any new discs - any clues?

    Hi Klaus1
    So, I tried all the suggestions and followed the links - all to no avail.
    as you can see, (screenshot below) my iMac is a 21.5 inch late 2009 model which isn't showing in the updates listed above
    My system report shows that my Mac has the following:
    I reset the PRAM and the SMC - still have the same error message when I try to burn discs. I've used both CD's and DVD's and tried with my external Discwriter too.
    Any further suggestions??

  • How do you deal with error message when downloading movie on iPad?  It was 75% complete.

    How do you deal with error message when downloading movie on iPad2.  Movie was 75% complete. 

    I was using wifi.  It shows as a purchase on iTunes but it does not show up on iTunes for download.  I keep getting the download error with our a number attached on the iPad.  Very frustrating.   Apple has been of no help at all. 

  • Import terminated unsuccessfully with error message imp-00013

    I am trying to import dump file of one table in another database.
    import is terminating unsuccessfully with error message imp-00013.
    (only a dba can import a file exported by another dba)
    None of the user has sysdba role.

    Wheather this is a valid solution?Immagine somebody who knows the account password finds a dump from an old release of your database. If he has IMP_FULL_DATABASE privilege, he can do whatever he wants, compromising data "safety".
    Is this valid? Well... IMHO, I don't think so. At least, now the import is done, revoke the privilege.
    Regards,
    Yoann.

Maybe you are looking for

  • Perform not found when i try to display vendor item

    Runtime Errors         PERFORM_NOT_FOUND Exception              CX_SY_DYN_CALL_ILLEGAL_FORM Date and Time          03/20/2009 01:31:52 Short text      Call (PERFORM) to a non-existent routine. What happened?      There exist various options:      Err

  • 6280 as a modem

    I have connected the Phone to my PC via IR and via USB successfully (backups transfers etc ok) BUT it refuses to work as a modem. The symtom is that I can see that the correct number appears on the phone once I start dial up but Immediatly (before ev

  • Will golive cs ( 7 ) run in OXS 10.5.7

    Well, will golive work in 10.5.7 on a intel apple box????? curtis

  • URL issue

    Hi Folks, In my applcation, all documents are stored in a central folder which is in tomcat/webppas/myapplication/myfolder. And i m restricting the users who looged into the applcaition that no other can see the other users files. ex: if A user enter

  • [SOLVED] System hangs at random, suspect X is the culprit

    For a bit over a week now, my system has been hanging seemingly at random. When watching youtube videos, when web browsing, when watching stuff in mplayer, probably more times too. The only way to get back to normal is hitting the physical reset butt