Problem with h:message and ajax

Hello,
I noticed a strange problem occurring with my richfaces application. It is as follows:
I have a contact form with "real-time" validation of each field. When a valid submission of the form occurs, the form is reRendered and strangely, the first field shows a validation passed status even though it is empty.
Here is my jsp:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:rest="http://restfaces.dev.java.net"
     xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
<body>
<ui:composition template="/template.xhtml">
     <ui:define name="title">
          <title><h:outputText value="todo: accueil" /></title>
     </ui:define>
     <ui:define name="body">
          <a4j:outputPanel id="wrapper" layout="block" styleClass="wrapper">
               <rest:link value="contactAction" hreflang="fr" lang="fr">
                    <f:param name="language" value="fr" />
                    <h:outputText value="#{msg['langue.francais.libelle']}" />
               </rest:link>
               <rest:link value="contactAction" hreflang="en" lang="en">
                    <f:param name="language" value="en" />
                    <h:outputText value="#{msg['langue.anglais.libelle']}" />
               </rest:link>
               <br />
               <br />
               <a4j:outputPanel rendered="#{contactView.envoiReussi}" ajaxRendered="true">
                    <h:outputText value="envoi reussi todo"/>
               </a4j:outputPanel>
               <a4j:form id="formulaireContact" reRender="wrapper">
                    <h:panelGrid columns="3" columnClasses="libellesColonne,champsColonne,validiteColonne">
                         <f:facet name="header">
                              <a4j:outputPanel layout="block" styleClass="formulaireContactHeader">
                                   <h:outputText value="todo header" />
                              </a4j:outputPanel>
                         </f:facet>
                         <h:outputText value="#{msg['message.from.email']}" />
                         <a4j:outputPanel id="fromEmail">
                              <a4j:region id="fromEmailRegion">
                                   <h:inputText id="emailI" value="#{contactView.message.email}" required="true"
                                        requiredMessage="#{msg['message.valeurRequise.email']}" validatorMessage="#{msg['message.erreur.email']}" binding="#{contactView.bb.emailI}">
                                        <a4j:support  id="emailS" event="onblur" reRender="fromEmail, emailMP" ajaxSingle="true" actionListener="#{contactView.valider}" limitToList="true" ignoreDupResponses="true" />
                                        <f:validator validatorId="adresseEmailValidator" />
                                   </h:inputText>
                                   <a4j:status>
                                        <f:facet name="start">
                                             <h:graphicImage value="#{img['ajax-loader']}" />
                                        </f:facet>
                                   </a4j:status>
                              </a4j:region>
                         </a4j:outputPanel>
                         <a4j:outputPanel id="emailMP">
                              <h:message for="emailI" infoClass="champValide" />
                         </a4j:outputPanel>
                         <h:outputText value="#{msg['message.from.nom']}" />
                         <a4j:outputPanel id="nom">
                              <a4j:region id="nomRegion">
                                   <h:inputText id="nomI" value="#{contactView.message.nom}" required="true"
                                        requiredMessage="#{msg['message.valeurRequise.nom']}" validatorMessage="todo: nom non valide" binding="#{contactView.bb.nomI}">
                                        <a4j:support id="nomS" event="onblur" reRender="nom, nomMP" ajaxSingle="true" actionListener="#{contactView.valider}" limitToList="true" />
                                        <f:validateLength minimum="2" />
                                   </h:inputText>
                                   <a4j:status>
                                        <f:facet name="start">
                                             <h:graphicImage value="#{img['ajax-loader']}" />
                                        </f:facet>
                                   </a4j:status>
                              </a4j:region>
                         </a4j:outputPanel>
                         <a4j:outputPanel id="nomMP">
                              <h:message for="nomI" infoClass="champValide" />
                         </a4j:outputPanel>
                         <h:outputText value="#{msg['message.sujet']}" />
                         <a4j:outputPanel id="sujet">
                              <a4j:region id="sujetRegion">
                                   <h:inputText id="sujetI" value="#{contactView.message.sujetMessage}" required="true"
                                        requiredMessage="#{msg['message.valeurRequise.sujet']}" validatorMessage="#{msg['message.erreur.sujet']}" binding="#{contactView.bb.sujetI}">
                                        <a4j:support id="sujetS" event="onblur" reRender="sujet, sujetMP" ajaxSingle="true" actionListener="#{contactView.valider}" limitToList="true"/>
                                        <f:validateLength minimum="2" />
                                   </h:inputText>
                                   <a4j:status>
                                        <f:facet name="start">
                                             <h:graphicImage value="#{img['ajax-loader']}" />
                                        </f:facet>
                                   </a4j:status>
                              </a4j:region>
                         </a4j:outputPanel>
                         <a4j:outputPanel id="sujetMP">
                              <h:message for="sujetI" infoClass="champValide" />
                         </a4j:outputPanel>
                         <h:outputText value="#{msg['message.corps']}" />
                         <a4j:outputPanel id="corps">
                              <a4j:region>
                                   <h:inputTextarea id="corpsI" value="#{contactView.message.corpsMessage}" cols="20" rows="5" required="true"
                                        requiredMessage="#{msg['message.valeurRequise.corps']}" validatorMessage="#{msg['message.erreur.corps']}" binding="#{contactView.bb.corpsI}">
                                        <a4j:support id="corpsS" event="onblur" reRender="corps, corpsMP" ajaxSingle="true" actionListener="#{contactView.valider}" />
                                        <f:validateLength minimum="20" />
                                   </h:inputTextarea>
                                   <a4j:status>
                                        <f:facet name="start">
                                             <h:graphicImage value="#{img['ajax-loader']}" />
                                        </f:facet>
                                   </a4j:status>
                              </a4j:region>
                         </a4j:outputPanel>
                         <a4j:outputPanel id="corpsMP">
                              <h:message for="corpsI" infoClass="champValide" style="vertical-align: top" />
                         </a4j:outputPanel>
                         <a4j:outputPanel/>
                         <a4j:outputPanel>
                              <rich:paint2D id="captcha" width="#{contactView.captchaWidth}" height="#{contactView.captchaHeight}" format="jpeg"
                                   paint="#{contactView.paintCaptcha}">
                                   <f:attribute name="alt" value="todo" />
                              </rich:paint2D>
                         </a4j:outputPanel>
                         <a4j:outputPanel />
                         <a4j:outputPanel>
                              <h:outputText value="todo Text on Image:" />
                         </a4j:outputPanel>
                         <a4j:outputPanel id="secureText">
                              <h:inputText id="secureTextI" value="#{contactView.secureText}" size="20" required="true" binding="#{contactView.bb.secureTextI}">
                                   <f:validator validatorId="captchaValidator" />
                              </h:inputText>
                         </a4j:outputPanel>
                         <a4j:outputPanel id="secureTextMP">
                              <h:message for="secureTextI" />
                         </a4j:outputPanel>
                         <f:facet name="footer">
                              <a4j:outputPanel layout="block" styleClass="formulaireContactFooter">
                                   <a4j:commandButton value="#{msg['message.envoyer']}" action="#{contactView.envoyer}"/>
                              </a4j:outputPanel>
                         </f:facet>
                    </h:panelGrid>
               </a4j:form>
               <a4j:outputPanel layout="block" styleClass="push" />
               <a4j:log popup="false" level="ALL" style="width: 800px; height: 600px;"></a4j:log>
          </a4j:outputPanel>
     </ui:define>
</ui:composition>
</body>
</html>Here is the managed bean method upon which submission is performed:
    public String envoyer() {
        log.debug("envoyer");
        service.envoyerMessage(this.message);
        try {
            service.envoyerSms(this.message);
        } catch (MalformedURLException ex) {
            log.debug(ex.fillInStackTrace());//todo
        } catch (IOException ex) {
            log.debug(ex.fillInStackTrace());//todo
        this.bb.setLocalValuesSet(false);
        this.bb.setSubmittedValues(null);
        this.bb.setValues("");
        this.envoiReussi = true;
        return null;
    }Can anyone tell me why the first h:message located within the following panel: (emailMP) displays this strange behavior?
Thanks in advance,
Julien.

see subject line...

Similar Messages

  • I have two Iphones with different email addresses sharing one Apple ID. Will that cause problems with using messaging and FaceTime?

    I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
    I would like to set up a new Apple Id for one of the phones and remove it from the old account.
    If I do that, can I move all of the purchased apps and songs to the new Apple account?
    Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?

    Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address).  While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
    Rather than do all that, don't fight it -- use separate IDs for iCloud.  You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account.

  • Problems with mail, messags, and social network accounts

    Hi,
    first of all, sorry for my bad English.
    I would like to know if there is a maximum limit of accounts (email, social network, etc. etc.) that OS10 can handle.
    On my Passport (OS10 Version 10.3.0.675) I have the following:
    - 1 BBM
    - 1 WhatsApp
    - 1 Facebook
    - 12 Mail
    Now, when I try to insert another account (for example mail or Twitter), I recived the following error message: 
    "The maxximum accounts has been reached".
    Is that right?
    With the Z10 and the Q10, if I remember correctly, I did not have this problem.
    I need to add more email accounts, someone can help me?
    Thank you all.
    I'M NOT LAZY,
    I JUST DON'T GIVE NOTHING!

    Let me see what I can find out and I'll get back to you when I know more! Thanks
    Did someone help you? Click Like! Did a post solve your issue? Click Accept as Solution!
    Follow me on Twitter or Google+ and subscribe to the Inside BlackBerry Help Blog

  • Problems with text messages and internet access

    I have an Apple 5c and over the last few weeks my text messages to most people had not been completing the send. Now, in addition, I am not receiving most messages and I can't access the internet for most apps (like maps, yahoo search, youtube). Is anyone else having this problem? Does anyone have any suggestions as to why this is happening and how to go about fixing it?

    Try removing then reinserting the SIM card -
    SIM Card Inserting Removing Apple iPhone 5 | Verizon Wireless
    It may just need a refresh to reconnect to the network again.

  • N96 Problem with "broken" messages and deleting th...

    Hello everybody
    I have a N96 with the last firmware version.
    It has been in repair for a week and now I got it back, I noticed that all my images are shown as "broken image icons".
    When I want to delete them it says: general system error.
    I also tried to delete them using Ybrowser but I can't find any pictures, not on any disk!
    I'd really like to delete them as I have them stored on my laptop, and the 101 broken image icons slow down my Images menu and they're just in the way...
    Please help me! Thank you! 

    The 'broken' images are not really there. The gallery is not a folder but a database that contains list of images throughout the phone, mass memory and memory card. Some images have been deleted but the database didn't get updated due to some error or corruption.
    If you have other copies of the images (ie: on your PC), you could restore them to the phone in the same folder, then they should appear correctly in the galelry again and you can delted them correctly.
    UNfortunately, there is no way to refresh the images like you can music files in the music player, so if the above doesn't work you might have to reformat your phone with the code *#7370# - this will delete all personal data in the phone memory, so make a PC Suite backup first.

  • When i try to order prints i get an error message saying there is a problem with my network and my network is working

    when i try to order prints i get an error message saying there is a problem with my network and my network is working. How can i solve this problem?

    Try a different media. I have good luck using Maxell discs.

  • I keep having the same problem with my messages over and over again. My number is not checked in my message settings it just unchecks itself

    I keep having the same problem with my messages over and over again. My number is not checked in my message settings it just unchecks itself

    Dear Tomarshe
    I had the same problem a couple of weeks back.
    What I did was that I restarted that Ipad of mine and voila!
    Problem solved!
    hope this helped!
    - DASHdotDASHdot

  • Problems with dropped calls and no reception on Samsung Continuum

    My mother and I both purchased a Samsung Continuum in late March 2011, and have experienced the same problems with the phone.  The device drops at least 2-3 calls per day, often on the same conversation; we have not found that location or time of day makes a difference.  The phone freezes up frequently, even if no apps are running in the background.  We lose our 3G network reception frequently, and cannot access our texts, emails, or the internet.  The screen saver kicks in even when we are actively dialing a number, or typing in a text message.  The overall performance of the phone is also poor, and it is quite slow much of the time.
    We have raised this issue several times with a representative at one of the Verizon stores, but he states that he can find no problem with the phone, and that these issues may not be covered under our insurance plan.  None of my friends with non-Samsung phones are having the same problems with phone reception and performance.  I am aggravated enough with these issues that I am considering reactivating my old Blackberry, which worked like a charm.
    I am not upset that my phone has not been updated to Android 2.2.  I just want the phone to perform as stated, and not fail at its primary function:  making and receiving phone calls.  I am not certain if these problems originate with the phone, Verizon, or Samsung, nor do I care.  I just want to resolve these issues as soon as possible, or I will have to look at other alternatives.
    Thank you.

    If this doesn't work...now what??? I have a useless $400 plus piece of unreliable junk. My Motorola Razor was ions more reliable than this phone...very, very sad but true.
    What carrier were you using with the Razor? AT&T? Same area?
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Creator of 'Mac611 - Mobile Mac Support' (designed exclusively for an iPhone/iPod touch)

  • Problems with .ARW files and auto toning

    problems with .ARW files and auto toning
    let me try to explain this because this has happened in past and never found a way to resolve but i lived with it
    now that I have a Sony A7R the problem is more serious
    Firstly i take pride it making the picture happen all in camera, i use DRO lvl 5 to get enough light, like when i'm shooting at dusk. DRO its like doing HDR but in a single file, it lightens the darks. in my camera i'm happy with results
    but when I upload them to lightroom, they come out near black.
    allow me to explain
    lets say I import 100 images
    i double check my preferences and everything is UNCHECKED when it comes to importing options, there is no auto toning, nothing.
    as the images import i see a preview in the thumbnail which looks fine.
    i double click on one to enlarge it, hence leave grid view.
    for a brief 1 or 2 seconds, i see the full image in all its glory but than lightroom does something funny, it darkens the image
    one by one as it inspects each image, if it was a DRO image it makes it too dark.
    to make this clear, the image is perfect as it was in the beginning but after a few seconds lightroom for some reason thinks it needs to correct it.
    how to prevent lightroom from doing this, i want the image exactly as it is, why must lightroom apply a correction>?
    i think it has to do something with interpreting the raw file and lightroom applies its own algorithm.
    but here is what i dont get.....before lightroom makes the change i'm able to witness the picture exactly as it was taken and want it unchanged..
    now i have to tweak each file or find a profile for it which is added work.
    any ideas how to prevent lightroom from ruining my images and just leave them as they were when first detected...
    there are 2 phases...one is when it originally imports and they look fine
    second is scanning each image and applying some kind of toning which darkens it too much.
    thanks for the help

    sorry thats the auto reply message from yahoo email.
    i've disabled it now
    thing is, there is no DRO jpg to download from the camera
    its only ARW. so my understanding is when i use DRO setting, the camera makes changes to the ARW than lightroom somehow reads this from the ARW.
    but then sadly reverts it to no DRO settings.
    because i notice if i take normal picture in raw mode its dark but if i apply dro to it, it comes out brighter, yet when i d/l the image from camera to lightroom, which is an ARW - there are no jpgs. lightroom decides to mess it up
    so in reality there is no point in using DRO because when i upload it lightroom removes it.
    is there a way to tell lightroom to preserve the jpg preview as it first sees it.
    its just lame, picture appears perfect...than lightroom does something, than bam, its ruined,.
    what do i need to do to prevent lightroom from ruining the image? if it was good in the first place.

  • Is there a problem with the itunes and quick time download pages or is it my internet.

    Is there a problem with the itunes and quicktime download pages or is it just my internet.

    Some more developments ... the issue appears to be browser-specific. I can't see the download controls at the moment in either IE 8 (I'll get your message) or Safari for Windows 5.0.5 (I'll just get the blank box). But I can see the download controls in Firefox 4 and Chrome (whatever version I have of that).
    So it might be worth installing Firefox and seeing if you can get the downloads via that:
    http://www.mozilla.com/en-US/firefox/new/

  • Hi anyone having a problem with windows 7 and itunes

    Hi has anyone had a problem with windows 7n and Itunes...My Itunes was working now wont open says files missing reinstall...which I have done several times also other programs that were working now have error message your side by side configuration isnt correct any ideas!!!

    Yes, I am also having trouble with my windows 7n.  I tried to install the download but it didn't have 32 bit for my computer and I don't think it will help me see my phone on my external devices. I can't transfer my photos. Any help would be appreciated.

  • I'm having problems with 8.1 and Continuity / Handoff. It will work fine for web pages, etc. but in email when I try to do it between by iPhone 5s running 8.1 and my Macbook Pro running Yosemite I consistently get an error.

    I'm having problems with 8.1 and Continuity / Handoff. It will work fine for web pages, etc. but in email when I try to do it between by iPhone 5s running 8.1 and my Macbook Pro running Yosemite I consistently get an error. "Failed to Continue Activity" Cocoa Error 4609.  Handoff is working for phone calls and text messages. By email just crashes each time. It was also doing it under 8.0.2.  My iPhone and iPad handle this fine. It's only the MacBook to the iPhone that fails, and only on email.

    Handoff Continuity Troubleshooting

  • Hi I have had problems with photo's and films going onto a 2010 Apple classic MP3.  Have managed to sort photos but it still refuses to copy the films purchased. It comes up with not copied cannot be played on this ipod.

    Hi have had problems with photo's and films going onto a 2010 Apple Classic mp3. Have managed to sort photo's but the films won't copy and comes up with message videos not copied cannot be played on this ipod

    razzbust wrote:
    ...but the films won't copy and comes up with message videos not copied cannot be played on this ipod
    Self explanatory.
    You could try creating an iPod version of the films.
    Use CTRL and B to display the Menu bar shown above. Alternatively, use the ALT key, followed by the F key, the W key and finally the I (eye) key - that's (menu)/File/Create New Version/Create iPod or iPhone version.

  • Problems with HP printer and PSE 11 (was bill v)

    When using my HP 7020e photosmart printer and Adobe photoshop elements 11, I get a very small white border on the prints. I have set for borderless printing. Adobe says the print size is 4.2 x 6.18 instead of 4 x 6. Any suggestions?

    I had already set it to borderless but it still prints a very small white 
    border. HP had no solution. I am ready to send the printer back to them.
    In a message dated 1/14/2014 5:47:22 A.M. Eastern Standard Time, 
    [email protected] writes:
    Re:  Problems with HP printer and PSE 11 (was bill v)
    created by hyadav (http://forums.adobe.com/people/hyadav)  in Photoshop 
    Elements - View the full  discussion
    (http://forums.adobe.com/message/6010537#6010537)

  • Problems with captivate 8 and windows 8

    I´m using captivate 8 and windows 8, and I am having problems with the visualization and publication of my projects. For visualization, there is a message of an error with syntax of the files ou directory, and nothing happens. For publication, I can´t see the project published in the browser. It opens only a text file, with the codes. Is there anyone thar can help me with that?

    Acrobat 8 is not certified for Win7, particularly the x64 version. If you got the installation to go, the first step is to update AA8 to at least AA8.2. The x64 with XP required at least AA8.2 and I suspect that has not changed. I would suggest updating to the latest, either from the help menu (until no more updates are available) or by downloading the updates from the adobe.com>downloads page. For the latter, download ALL updates after your current version and install them in ORDER. They are not cummulative in most cases. You only need to reboot after the final update. The updates may get you going. If not, you may simply have to upgrade to AA9 or search for what others have been able to do in your situation.

Maybe you are looking for

  • Should I be able to see networked computers in Finder?

    Forgive me if this is totally obvious. Should I be able to click on Network in Finder and see networked PCs on my LAN? I can share and transfer files from a laptop to this iMac, but I don't have the laptop with me right now. I'm trying to see a diffe

  • Is there any chance of creating conditions for parameters in discoverer...

    Hello all, can u help me.. i will tell the situation i have some countries with some codes like 40 to 80. and i have a group name for these countires like 'EMT'. like that i have total three groups of different names .... I like to create a parameter

  • Internal Speakers Problem

    Hi, I am helping my sister diagnose a problem with her macbook. It is an '07 model. Using screen share I determined there appears to be a software 'gliche' that prevents her mac from ID-ing the built in speakers and sending output to them. If she plu

  • Error when installing flash player on macbook

    I CONSTANTLY GET AN INSTALLATION ERROR ON MY MACBOOK 10.8.5, TRIED TO FOLLOW ALL STEPS BUT TO NO AVAIL.....HELP!!

  • Creating new DC using existing DC like copy paste

    Dear friends, Any steps how to create a new DC using existing DC. I would like to create a new DC which is exactly equal to other DC like copy paste. Early reply appricated Many thanks. Lakshmikanthaiah