FacesMessage and general f:message../

I am using the standard validateLength validator in a page and am using <f:message for="username"/> to spit out the horrid standard error message.
But I also need a message to appear at the top of the form if the user just enters wrong credentials. So I did the following in my LoginBean class
public String login()
        if ( username.equals("sam") && password.equals("iam"))
            return "success";
        else
            FacesContext context = FacesContext.getCurrentInstance();
            FacesMessage message = new FacesMessage("Invalid Username and/or Password");
            message.setSeverity(FacesMessage.SEVERITY_ERROR);
            context.addMessage("login", message);
            return "failure";
    }And then in my login.jsp I thought I could place the following line at the top of the form
<h:messages id="login"/> When the credentials are wrong, this works fine. But when the length validator is hit, I also get those error messages at the top of my form. I only want that error message to show up if my login credentials are wrong. Not on the validateLength.
Thanks.
Gregg

Ok, I figured out that in my LoginBean when I created my FacesMessage I needed to tell it what component to be registered for. So I used the id of my FORM and it worked great.

Similar Messages

  • Ipod Touch 3G no longer plays clock alarm sounds and just pauses and shows alarm messages.

    All of a sudden, I am no longer able to hear clock alarm sounds like I used to.  Until recently, I was able to just play a music file, set the clock alarm with any sound from the selection while being able to preview the sound before I saved it, and then have it play at the time I set the alarm.  Now, whatever music I'm playing just pauses while the alarm goes off and the alarm messages are visble on screen. I went to settings--->general-->sounds and everything is on.  What happened here?

    Yes, I did. All I needed to do was raise the volume from zero to above using the *actual buttons on the side* of the device instead of just the touch screen volume control. If you try to adjust the volume using *only* the touchscreen volume control, the sound of your music and videos will be affected directly as you desire, BUT if the volume control from the *actual buttons on the side* is completely down, the alarm clock will not sound.
    I hope this helps. It may not make sense right off the bat but do give it a try.

  • General Error Message Won't Let Me Save

    Hello,
    I was editing an HD video earlier and I switched my audio/video settings to sequence preset DVCPRO HD - 720p24 - my capture present to DV NTSC 48 Khz (since im not capturing. i pulled files off an external hard drive - my device control preset was on SONY HDV FireWire. My video playback was on apple firewire DVCPRO NSTC 720x480. I opened another project and switched my user settings to regular DV NTSC. when I got back on my HD video, it showed that I needed unexpected rendering. When I rendered it gave the "general error" message. I had to select each clip that needed rendering and move it a little, then re render the selection. when I went to save the project it gave me the same "general error" message. I need to export this project to qucktime ASAP to put on a DVD. what should I do? pleeeease help......
    thanks in advance.
    and am I royally screwed????

    sounds like you have some corruption going on, or perhaps a permissions issue (though I think that's less likely). Here are some things I'd try.
    Create a new sequence with the proper settings for your footage. Copy all the clips in your old sequence and paste into the new sequence.
    Create a new project with a new sequence. Copy and paste the clips of old sequence into the new sequence of the new project. Save As and give it a new file name.
    Check the pathway to your Render folder and your Save folder. Make sure that permissions allow for READ AND WRITE all the way down. In other words, if your render folder is in:
    Harddrive/FCP/Render
    Then make sure all three have READ WRITE permissions applied. Do this by selecting them one by one and hitting CMD+I for info. Then look at the permissions.
    Hopefully one of those options will help.
    Andy

  • "No Movie in File" & GENERAL ERROR messages

    I'm using FCP 6.0.3, QT 7.4.5, Mac OS X 10.4.11
    I'm running the OS and FCP from my main internal HD,
    The audio files from my second internal drive
    The Video Files from an external LaCie FW-800 1.2TB drive
    I've been editing this huge project for close to a year now. I was 24hr to completion when this fu&?*&?% problem came up. My job is split into projects each with it's own sequence. I've been working on these sequences regularly without problem. Today I open the 4th project and try to render everything that isn't rendered. When I do, I get this message: "No Movie in File". If I place my playhead over it, some parts show up in the canvas, others don't (I just see the last image that updated on the canvas). If I press play over the un-rendered clip I get "GENERAL ERROR" without any numbers next to the message. All my other projects work fine.
    I tried the following:
    Repaired my disk permissions
    Trashing FCP's user data pref files.
    Rebuilding the directory on my audio and video scratch disks
    I trashed the render files for that sequence
    I tried opening a 1 week old back up copy of the sequence (same)
    I created a new project with a new sequence and copying my other sequence's content into it.
    Nothing has worked so far. I'm looking at a couple of MONTHS of work if I have to re-create this...

    I think this will work to find out if there are any offline clips in your sequence. Select the sequence in the browser, choose reconnect and make sure only "offline" clips are enabled.
    A few other possibilities: Are you using any graphic files? If so, if they are cmyk, that's the problem. Are you using any reference (non selfcontained quicktimes?). If so, you may have deleted or moved some of the files that are being referenced.
    Oh yeah, one thing to try. Select the sequence in the browser (or make the timeline active) and hit command-zero. Change the codec to animation. Everything will need to be rendered, but will the sequence play now? If so, try changing the codec back to it's original state and pray.
    Message was edited by: Michael Grenadier
    Message was edited by: Michael Grenadier

  • Oracle tuxedo and Oracle tuxedo message queue on top of a virtual machine.

    Hi buddies.
    how is it going?
    A quick question.
    So we are going to go live  using Oracle Tuxedo 12.1.1.0 with Distinguished Bulletin Board Liaison and Oracle Tuxedo Message Queue 12.1.1.0  on top of a Virtual Machine (VMWARE) running Oracle Linux 6.2. However we want to know if there are any recommendations or mishaps in which we may face ahead by running Oracle Tuxedo on a virtual machine?
    I mean, I am wondering if I have to worry about kernel parameters, virtual machine parameters or any other thing from which could mess up everything.
    Another question.
    Does oracle also provide virtual machines certification where Oracle tuxedo would run on top of ?
    Todd Little-Oracle
    Maurice G

    Hi Bruno,
    I'm not sure what you mean with Distinguished Bulletin Board Liaison.  I'm guessing you mean a clustered or MP configuration?  And is it truly a clustered configuration or just a single machine MP configuration?
    Regarding configuration, are you using Tuxedo services as well or just Tuxedo Message Queue?  The biggest issue related to OS configuration is around IPC resources.  If you do a tmloadcf -c on your UBBCONFIG file, it will help you determine the minimum IPC resources required.  In general I suggest configuring significantly more resources than the minimum to allow for future changes and for some of the parameters for heavier loads.  In particular IPC message queue parameters are heavily dependent upon load.  So make sure the maximum message size and queue size are large enough for your anticipated workload.  You can monitor them under load using the ipcs command.
    We don't certify virtual machine environment but support them as long as the VM vendor assures compatibility, which obviously VMware and Oracle VM both do.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • General Error Message When Installing Flash Player on Mac

    I have a new MacBook Pro.  I have OS 10.8.2.   I cannot get FlashPlayer to download.  I have tried uninstalling and reinstalling Adobe Flash Player 11 from the Adobe website.  Doesn't work.  Every time I try to download, I get an error message that says "Error: General Installation Error"   Can someone PLEASE help?  I've spent hours with this and am very frustrated.

    Thank you for your reply.   I am running Safari, and I have tried  it with
    the browser closed and open, and same result.  Here's the  string:
    1/29/13 9:14:23.111 AM coreservicesd[72]: Application App:"Install 
    Adobe Flash Player" @ 0x0x7ffa02372980 tried to be 
    brought forward, but isn't in fPermittedFrontASNs ( (
    ASN:0x0-0x4fc4fc:)  ), so denying.
    1/29/13 9:14:23.111 AM WindowServer[98]: Failed  setting
    the front application to Install Adobe Flash Player, psn  0x0-0x4fb4fb,
    securitySessionID=0x186f3, err=-13066
    1/29/13 9:16:36.000  AM kernel[0]: HFS: Vol: Flash Player Very Low Disk:
    freeblks: 0,  dangerlimit: 84
    1/29/13 9:17:17.590 AM sudo[6366]: Aaron : TTY=unknown ;  PWD=/ ;
    USER=Aaron ; COMMAND=/usr/bin/open 
    http://get.adobe.com/flashplayer/completion/aih/?exitcode=255&type=install
    1/29/13  9:31:50.494 AM coreservicesd[72]: Application App:"Install
    Adobe Flash  Player" @ 0x0x7ffa0141e3c0 tried to be
    brought forward, but  isn't in fPermittedFrontASNs ( (
    ASN:0x0-0x518518:) ), so  denying.
    1/29/13 9:31:50.494 AM WindowServer[98]: Failed  setting
    the front application to Install Adobe Flash Player, psn  0x0-0x517517,
    securitySessionID=0x186f3, err=-13066
    1/29/13 9:33:52.000  AM kernel[0]: HFS: Vol: Flash Player Very Low Disk:
    freeblks: 0,  dangerlimit: 84
    1/29/13 9:35:32.014 AM sudo[6521]: Aaron : TTY=unknown ;  PWD=/ ;
    USER=Aaron ; COMMAND=/usr/bin/open 
    http://get.adobe.com/flashplayer/completion/aih/?exitcode=255&type=install
    1/29/13  9:44:32.000 AM kernel[0]: HFS: Vol: Flash Player Very Low Disk:
    freeblks: 0,  dangerlimit: 3
    1/29/13 9:46:55.473 AM coreservicesd[72]: Application  App:"Adobe Flash
    Player Install Manager" @ 0x0x7ffa01418520  tried to be
    brought forward, but isn't in fPermittedFrontASNs ( ( 
    ASN:0x0-0x545545:) ), so denying.
    1/29/13 9:46:55.474 AM  WindowServer[98]: Failed setting
    the front application to  Adobe Flash Player Install Manager, psn
    0x0-0x543543,  securitySessionID=0x186f3, err=-13066
    1/29/13 9:46:55.784 AM authexec[6588]:  executing /Library/Application
    Support/Adobe/Flash Player Install  Manager/fpsaud
    1/29/13 10:37:02.258 AM coreservicesd[72]: Application  App:"Install
    Adobe Flash Player" @ 0x0x7ffa02123b30 tried to  be
    brought forward, but isn't in fPermittedFrontASNs ( ( 
    ASN:0x0-0x57d57d:) ), so denying.
    1/29/13 10:37:02.258 AM  WindowServer[98]: Failed setting
    the front application to  Install Adobe Flash Player, psn 0x0-0x57c57c,
    securitySessionID=0x186f3,  err=-13066
    1/29/13 10:39:02.000 AM kernel[0]: HFS: Vol: Flash Player Very Low 
    Disk: freeblks: 0, dangerlimit: 84
    1/29/13 10:39:27.431 AM sudo[6839]:  Aaron : TTY=unknown ; PWD=/ ;
    USER=Aaron ; COMMAND=/usr/bin/open 
    http://get.adobe.com/flashplayer/completion/aih/?exitcode=255&type=install
    1/29/13  2:54:59.429 PM coreservicesd[72]: Application App:"Adobe Flash
    Player  Install Manager" @ 0x0x7ffa01418520 tried to be
    brought  forward, but isn't in fPermittedFrontASNs ( (
    ASN:0x0-0x597597:) ), so  denying.
    1/29/13 2:54:59.429 PM WindowServer[98]: Failed  setting
    the front application to Adobe Flash Player Install Manager, psn 
    0x0-0x594594, securitySessionID=0x186f3, err=-13066
    1/29/13 2:54:59.740  PM authexec[6892]: executing /Library/Application
    Support/Adobe/Flash Player  Install Manager/fpsaud
    1/29/13 3:04:55.770 PM coreservicesd[72]: Application  App:"Install
    Adobe Flash Player" @ 0x0x7ffa014417d0 tried to  be
    brought forward, but isn't in fPermittedFrontASNs ( ( 
    ASN:0x0-0x5b65b6:) ), so denying.
    1/29/13 3:04:55.770 PM  WindowServer[98]: Failed setting
    the front application to  Install Adobe Flash Player, psn 0x0-0x5b45b4,
    securitySessionID=0x186f3,  err=-13066
    1/29/13 3:06:56.000 PM kernel[0]: HFS: Vol: Flash Player Very Low  Disk:
    freeblks: 0, dangerlimit: 84
    I look forward to your  response.
    Hilary
    In a message dated 1/29/2013 6:27:35 P.M. Central Standard Time, 
    [email protected] writes:
    Re:  General Error Message When Installing Flash Player on Mac
    created by Chris Campbell (http://forums.adobe.com/people/chris.campbell)
      in Installing Flash Player - View the full  discussion
    (http://forums.adobe.com/message/5032761#5032761)

  • Can I validate input parameters and throw a message to user that parameters are invalid?

    Post Author: ak004
    CA Forum: General
    Hi,
    I have a report that accepts input parameters. Can I do a front end validation for these parameters and throw a message to the user that the parameters are invalid? Will this work fin if I deply it in infoview?
    Thanks

    I think I posted this on the wrong forum, I will repost this in the proper forum

  • I'm getting a general error message then out of memory trying to add a new sequence

    Anyone know how to fix??  i am getting a general error message and then out of memory when adding a new squence??  Help!

    The General Error warning is usually associated with incompatible files.
    Out of Memory can be caused by corrupted clips, incompatible files and still images that use a color mode other than RGB.

  • I get a General Error message when I convert my film to Quicktime Movie.

    I've compressed my film down to 24p etc etc. That worked fine. Before I did the compression there were some things I had to reconnect, did that, there was only one that didn't reconnect but the compression worked fine. Then I go to turn the film into a Quicktime Movie, I get to about 60% then I get a General Error message. Anyone have any ideas why thats happening?

    Have you tried the compression with cinema tools?
    make a quicktime movie of the stuff at 25 that you want to compress at 24 and go to cinema tools. make sure you create a new database at 24fps and try menu clip / comform. notice that cinema tools doesn't duplicate the clip, so it converts the one you are importing, make sure it is a copy of the original at 25

  • When I open certain apps it says my device's date is incorrect. But on my calendar and general settings, it's all correct!

    When I open certain apps it says my device's date is incorrect. But on my calendar and general settings, it's all correct!

    Try changing the date - doesn't matter to what - just change it - go back to the app and I assume that you will get the same message. Go back to the settings and change the date and time to automatic again and see if the apps will work after that. Turn location services on in the settings as well.

  • General error message

    I have recently finished and edited a wedding DVD for a client.However they want now all uncut footage onto a DVD but every time i export it (sequence is only 1 hr 30 mins) it comes up with a general error message just before completing.I have also rendered all in the sequence and i have 35 gb available on the drive and there are no transitions between clips except for a dissolve on the intro and a fade out at the end.
    Any advice is welcome and many thanks in advance.
    Ali
    G5 Imac   Mac OS X (10.3.9)  

    Thanks for an interesting idea but allas it didn't work !!
    It wouldn't export the first raw footage sequence I exported without any transittions . So I then exported it a second time but with a cross disolve at the front and a fade out at the end and all was then fine. But with the raw footage 2 sequence I'm doing now I'm still getting the " general error" message even after this little trick.... and after your trick too........
    Oh well thanks for the tip.
    Ali
    Doe FCE work ok with OSX Tiger 10.4 ?

  • Updating iTunes 12.1 and get error message "The procedure entry point CMBlockBufferCopyDataBytes could not be located in the dynamic link library CoreMedia.dll - what went wrong and how to resolve this?

    Updating iTunes 12.1 and get error message "The procedure entry point CMBlockBufferCopyDataBytes could not be located in the dynamic link library CoreMedia.dll". What went wrong and how to resolve this?

    Entry point errors can often be fixed by deleting the offending dll, then repairing the component it is part of.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If the advice above doesn't resolve things you could try this alternate version:
    iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
    which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases.
    Or roll back to the previous build:
    iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
    iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
    tt2

  • The Add-on Creative Cloud Libraries failed to install, General error message

    Hi there,
    My CC icon has an exclamation mark next to it and following message appears when in Apps:
    "The Add-on Creative Cloud Libraries failed to install, General error message"
    Any idea what could be a reason and how to sort it out?
    Thanks,
    Zana

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

  • I tried to sync my iphone4 to my pc (not mac) and the following message went out: I tunescould not back up the iphone because an error occurred   I restore my phone but nothing happened. What shall I do? (my ipad is working perfectly)

    I tried to sync my iphone4 to my pc (not mac) and the following message went out: I tunescould not back up the iphone because an error occurred   I restore my phone but nothing happened. What shall I do? (my ipad is working perfectly when i sync it)
    I dont know why this happens.

    Unfortunately, "because and error occured" doesn't give you much to go on.  Some general things I would try if you haven't already:
    Use Disk Utility on your mac to repair disk permissions, then reboot and try backing up again.
    Use Finder to go to ~/Library/Application Support/MobileSync/, then control-click on the Backup folder and select Get Info, then check Sharing & Permissions at the bottom and make sure your username has read & write priviledges
    Try closing all apps, then reset your phone: double-tap the home button, tap and hold the apps at the bottom until they wiggle, tap the minus sign on all apps to close them.  Then reset your phone: hold the on/off and home buttons until you see the Apple logo (ignore the off slider that appears first), and release
    Try a different usb to dock connector cable; ensure that your case isn't interfering with a good connection to the dock connector at the bottom of your phone; clean the dock connector at the bottom of your phone (e.g., with a dry toothbrush); troubleshoot your usb connection (http://support.apple.com/kb/TS1286)
    I know this looks like a laundry list, but unfortunately it's hard to isolate the problem without a clear error message.  If the problem persists, you might try posting in the iMac or iTunes forums for other ideas.

  • Trying to update apps on iphone and getting error message, there is not enough available local storage to download these items. you can manage your local device storage usage in settings

    trying to update apps on iphone and getting error message, there is not enough available local storage to download these items. you can manage your local device storage usage in settings. What am I to do?

    The storage you purchased is in the cloud, and doesn't do anything with your pad.  Your problem is simply that you have too much content on your pad.   Go to settings, general, usage, and it will show you how much space you have avaliable on your pad.  If you let the screen sit for a while, all the apps will be displayed, and you can see how much stuff you have associated with each.
    You have to no option but to delete some of the content on your pad.  Videos, comics, pitcures and some music files use a lot of space.   The cloud allows you to leave stuff there, so you can get it when you need it.

Maybe you are looking for