Why the validator can't display the error message on the popup dialog?

I have input text with a validator and a custom ok button and a cancel button on the popup dialog.When I click the ok button,the validator will validator the input value on the input text,but it just close the popup dialog without display the message firstly.The point is it does validate the value but doesn't display the message.Can anybody help?

It seems if I use the button which is associated with the dialog the validator works well,but if I use the custom button the error message doesn't display. the environment is 11g.
the code of the page is :
<af:form>
<af:popup id="copyPopupDialog" contentDelivery="lazyUncached">
<af:dialog title="validator" closeIconVisible="false" type="none">
<af:inputText id="copyReportsetCode" styleClass="" label="code"
value="11"
validator="#{reportSetManagedBean.validatCode}"></af:inputText>
<f:facet name="buttonBar">
<af:panelGroupLayout layout="horizontal" halign="right">
<af:commandButton text="ok"/>
<af:commandButton text="cancel" immediate="true"/>
</af:panelGroupLayout>
</f:facet>
</af:dialog>
</af:popup>
<af:commandButton text="commandButton 1">
<af:showPopupBehavior popupId="copyPopupDialog"/>
</af:commandButton>
</af:form>
the code of the managedbean is:
package david;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.ValidatorException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.regex.Pattern;
import javax.faces.application.FacesMessage;
import javax.faces.application.FacesMessage;
import javax.faces.application.FacesMessage.Severity;
public class ReportSetManagedBean {
public ReportSetManagedBean() {
public void validatCode(FacesContext facesContext, UIComponent uIComponent,
Object object) {
FacesMessage msg = new FacesMessage("eror");
throw new ValidatorException(msg);
}

Similar Messages

  • HT201210 My iPad is not recognized by Finder or iTunes when it is plugged into the computer.  i ran the Restore sequence and got an error message stating "The iPad could not be restored.  An unknown error occurred (1611).  Can this be fixed?

    My iPad is not recognized by Finder or iTunes when it is plugged into the computer.  i ran the Restore sequence and got an error message stating "The iPad could not be restored.  An unknown error occurred (1611).  Can this be fixed?

    iTunes: Specific update-and-restore error messages and advanced troubleshooting - http://support.apple.com/kb/TS3694 - relating to iPad, iPhone, iPod touch, iTunes
    Security software issues covered in: iTunes: Troubleshooting security software issues - http://support.apple.com/kb/TS3125

  • I bought a used PowerMacPC G5. I can burn and read DVDs, but I can't read or burn CDs. The CDs are not even recognized. After the drive searches for a while, the CD is ejected without any error messages. The CDs work okay on my iMac.

    I bought a used PowerMacPC G5. I can burn and read DVDs, but I can't read or burn CDs. The CDs are not even recognized. After the drive searches for a while, the CD is ejected without any error messages. The CDs work okay on my iMac.
    I am running Mac OSX 10.4.11. According to the System profiler the CD/DVD drive is a "PioneerDVD-RWDVR-112D." When I compare the information under this heading, the only unusual difference from my iMac is that the G5 reads "Burn Support: Yes (Unsupported)." My iMac reads "Burn Support: Yes (Apple Shipping Drive)."
    Under the System Preferences the options are set to "Ask what to do" when a blank CD or DVD is inserted. Music CD set to open iTunes, Picture CD set to open iPhoto, Video DVD set to open DVD player.
    Do you have any suggestions?
    Thanks, Jack

    Hi Jack, great help so far!
    Internal...
    http://eshop.macsales.com/static_pages/Framework.cfm?page=superdrive/sdl_powerma c_g5.html
    External be sure it's Firewire & not Bus powered...
    http://eshop.macsales.com/shop/firewire/optical-drives/

  • Installing the latest update on my iPad - error message saying the iPad couldn't synchronize because of an internal error, and then - error message (OxE8004017) when trying to save, and then (2003) when trying to restore - nothing works anymore

    Installing the latest update on my iPad - error message saying the iPad couldn't synchronize because of an internal error, and then - error message (OxE8004017) when trying to save, and then (2003) when trying to restore - nothing works anymore - On my iPad the only thing I see is a connector cord to iTunes and nothing else.
    What can I do  ???

    Same issue for me, recently I started having issues with apps no longer being able to access my Facebook account. But the iPad Facebook account settings will not accept my password, even though the Facebook app and Safari can access my account fine. The only significant events I recall that have occurred that may have triggered this have been that via my Facebook account I killed off a lot of so called authorised connections and I changed my user name, but still have the same email address and password.
    I have tried just about every solution put forward on the net, short of a factory restore, back to new, on my iPad.
    I have also; deleted my iCloud account, deleted the Facebook app and account, deleted Safari data.
    One would think that after I have deleted my account from the iPad that it would ask for both username/email address and password, but it only asks for password, so the username is still stored somewhere that I am unable to delete.
    I also see that no one seems to have been able to get an answer from Apple. So I'm guessing they have absolutely no idea themselves.
    I am hesitant to put my username on Facebook back to what it was as Facebook only give you a few chances to change your username, then you are locked.
    I have iOS 7.1.1 installed.
    I did have a lot of respect for Apple and their devices as they just worked, but they are becoming tarnished by ignoring what seems to be a growing issue.

  • I have a new laptop and I am trying to download CS3. The site on adobe gives an error message and the one I tried from this forum downloaded CS3 extended, so my serial number does not work. Does anyone have any suggestions. Regards Vicki

    Hi,
    I have a new laptop and I am trying to download CS3. The site on adobe gives an error message and the one I tried from this forum downloaded CS3 extended, so my serial number does not work. Does anyone have any suggestions. Regards Vicki

    The trial is always extended. The serial number you enter determines whether it runs as standard or extended.
    I'm getting through fine with that link, so it must be a browser issue or some such thing. Try another browser.

  • TS3694 hello out there ! am trying to restore my ios, but toward the end of the process, i am receiving an error message like "the iphone could not be restored, an unknown error occured(1015). Kindly help me resolve this problem, my iphone has been down f

    hello good samaritan out there ! am trying to restore my ios for for i phone 3G, but toward the end of the process, i am receiving an error message like "the iphone could not be restored, an unknown error occured(1015). Kindly help me resolve this problem, my iphone has been down for a we

    mazunzo tembo wrote:
    "the iphone could not be restored, an unknown error occured(1015).
    Unauthorized modification of iOS  >  http://support.apple.com/kb/HT3743
    ERROR 1015...
    This Error Code is indicative of the Device being jailbroken / Hacked...
    Sorry... But...
    The discussion of Jailbroken Devices is against the Terms of Use of this Forum.
    You will need to look elsewhere.

  • How to display custom error message if the Required field is not entered?

    Hi,
    I have made one input field as required field in a view.
    I want to display one custom error message ,if the required input field is not entered.
    Please help me regarding this.
    Thanks,
    Deepika

    hi deepika....
    First go to message pool under webdynpro components.
    Create a new message there..of type error.
    Enter your text.
    Now to avoid null pointer exception , in wdDoInit(), initialise the value
    wdContext.currentDateTimeElement().setDate("");
    now create an action for submission of data. If field is empty, then within the button write:
      msg = wdComponentAPI.getComponent().getMessageManager();
        if(wdContext.currentDateTimeElement().getDate().equals(""))
        msg.raiseMessage(IMessageCompTodatDateTime.ERROR,new Object[]{""},true)     ;
    between begin others put:
    regards,
    pinki
      IWDMessageManager msg = null;

  • How can I disable RPS error messages in the AS5300 ?

    How can I disable de error message:
    " %RPS-3-MULTFAIL: There is more than one failure with the Redundant Power System; please resolve problems immediately "
    in the AS5300 with RPS Chassis and normal single power supply ?

    If you only have a single power supply,
    I would try swapping it (or swapping
    slots) to verify if it is the problem.

  • Itunes will not connect with the store.  I get no error message.  The store just won't load on the screen.

    Itunes will not connect to the store.  I get no error message, the store just won't load.

    Have you had a look here,
    Can't connect to the iTunes Store
    From here
    http://www.apple.com/support/itunes/troubleshooting/

  • Can't import music; error message reads, "The importer reported a generic error."

    I've attempted to drag and drop multiple music files into the Soundtrack bar but nothing is working. I keep getting the same Error Message, which reads, "The importer reported a generic error." Can someone lead me in the right direction with some help?

    Along with the comments by both John T., and Steve G., there have been some issues reported with both of the two, Fixed Audio Tracks, Soundtrack and Narration. I do not think you have gotten that far yet, but wanted to point out the potential for those issues. Should you get your music Imported into the Project, but have issues when you use either Narration, or Soundtrack, just use an empty "regular" Audio Track.
    Good luck, and please let us know more about your music files.
    Hunt

  • Can we show custom error message if the user fail to log in MII system.

    Hi,
    Is it possible to show a custom error message when a log in is failed because of access restrictions?
    I am using xMII version 11.5
    Thanks
    Regards,
    Neha Maheshwari

    Since you are on 11.5, it is possible to make edits to some of the system jsp pages, etc. but it would NOT be my recommendation to do so.  Since the NetWeaver versions for MII 12.0 and beyond use UME for the login instead of the LHSecurity engine, this would be a very short term change.
    What specific changes would you like to make, the login page messages, query result messages, applet messages?

  • Can we display custom error message in user decision step screen.

    Hi,
    My requirement is to display error message when approver selects reject button in user decision step.
    based on some condition i need to display error message in user decision screen when approver tries to
    reject .
    Please help
    Thanks,
    Phani

    Hi ibrahim,
    Thanks for your Replay.
    steps
    1. cretae global class with interface  IF_SWF_IFS_WORKITEM_EXIT.
    2. cretae Event with importing parameter.
    where i need to call EVENT_RAISED method ,do inned to call that method in
    IF_SWF_IFS_WORKITEM_EXIT ?
    how  SWRCO_EVENT_AFTER_EXECUTION value is passed to method EVENT_RAISED ?
    Thanks,
    phani

  • HT5654 I performed the update to my iphone to get the latest version, but now it does not want to activate my phone and displays the error message that the activation server is not available. Tried itunes and no luck. help anyone

    I have an iphone 3gs of which I attempted the latest IOS pdate through itunes. Now, it shows the original start up screen and when it gets to the activiaton screen it displays an error message stating: Your iphone could not be activated because the activation server is temporarily unavailable.  Help anyone??

    "We're Sorry, Activation Server Temporarily Unavailable, contact Customer Care?"
    99.9% of the time, the cause of this issue is the fact the phone was jailbroken/hacked to unlock it for use on networks other than the network the phone was originally locked to. Apple maintains a database of officially unlocked iPhones, and when Apple's servers detect phones such as yours, activation stops & you get the message you got.
    So, you need to get a sim card from the carrier the phone was originally locked to, or get it officially unlocked, if you want to activate it. Because it appears that it was not officially unlocked.

  • Want an Error message if the New Version is not ticked Completed in a PO

    Hi All,
    I want to display an error message if the New Version created while making any changes in a PO is not ticked Completed in the Header--> Versions. Please tell me in detail how can this be done?

    Hi,
    To do this goto IMG->MM->Purchasing->Version Management->Set up Version Management for External Purchasing Documents
    Here Tick on Version Active & in Field Selection in the relevant fields where you want users to enter data make them as Required Entry.  This will post an error message when ever it is not complete.
    regards,
    JP

  • How to display an error message after validation in Formatted Search?

    Hi SBO experts,
    if an error is detected on validation in a Formatted Search, how to display an error message to the user entering the data?
    Thanks & Regards,
    Raghu Iyer

    i created a formatted search query & attached it to the field 'Quantity' at Line Item level in Sales Order screen. just for testing purpose, i eneterd the following code lines in the query validating 'Quantity'
    if $[$38.11.0] > 50
    begin
    select @error = 1
    select @error_message = 'Vendor code cannot begin to X sign.'
    end
    the system throws the error : Internal error (8180) occurred [Message 131-183]
    actually, i need to display an error message to the user if Quantity is not in multiples of the OITM.SalFactor2
    if $[$38.11.0] % (SELECT T0.[SalFactor2] FROM OITM T0 WHERE T0.[ItemCode]  = $[$38.1.0]) > 0
    begin
    select @error = 1
    select @error_message = 'Error in Quantity.'
    end
    but, this expression to get the remainder itself seems to have some error
    $[$38.11.0] % (SELECT T0.[SalFactor2] FROM OITM T0 WHERE T0.[ItemCode]  = $[$38.1.0])
    i guess, % operator is used for modulo (to find the remainder of one number divided by another.) ? am i right ?
    Regards,
    Raghu Iyer

Maybe you are looking for

  • What are the advanteges and disadvanteges of using pl/sql over hibernate

    i knwo that pl/sql are well structure and provide a lot of functionalities with oracle databse , but my question is the hibernate might give some advnateges of scalability over pl/sql. so what are the advanteges and disadvanteges of using pl/sql over

  • Creating PDF from Word 2010 and Acrobat X Colors Not Accurate

    I'm puzzled by this one. When we print the documents directly from Word 2012 the colors print correctly. When we use the one click button in the ribbon. PNG files convert well, Illustrator EPS files do not. We use a logo that has Pantone Process Blue

  • HT1937 Unlocking

    Hi I have my I phone 5 for over a year and it has been the best thing ever. I have recently moved to Australia and the phone doesn't work it needs to be unlocked. I have been onto my carrier Meteor and they say they can't do it as they need authority

  • SPL Screening stopped working

    Hi Guys Basically in the Feeder system we are trying to create a PO with a Vendor who is already been added in the SPL, when the status is being checked in the below are showing Check item 10 Relevant check date for item: 03.08.2011 (time 12:00:00) E

  • Why is Logic Express 8 keep stopping after 2 sec, every time I press play? Help!!!

    Why is Logic Express 8 keep stopping after 2 sec, every time I press play? Help!!!