How do I know if a form has been successfully validated?

I have a form with a bunch of text fields. When users submit() the form, I display the updated form in "Read-Only" mode, by setting up textField.setReadOnly(true). However, I don't want the form to go Read-Only if the validation was not successfull. Is there a way to figure out of the validation was successful or not? (something like this.form1.isValid(), etc.)
Thanks

I agree that putting afterUpdateModelValues will do the trick, but I do not agree that it is necessary to do so.
With the JSF lifecycle, the action method is not called if there are conversion or validation errors.
Here is a very simple example that illustrates this. Create a page (make it the start page)
Add textField1, button1, and messageGroup1.
Set required to true (check the box) for textField1.
Double-click the button and change the action method as follows:
    public String button1_action() {
        error("action method called");
        return null;
    }Run the program. Don't put anything in the text field and click the button. You will not see the message "action method called". Now put something in the text field and click the button. Now you see the message.
So, how are you validating the fields? (1) Are you using validators from the palette, as shown in http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/validators_converters.html? (2) Or are you writing your own custom validators, as shown in http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/customvalidator.html.
If (2), are you throwing ValidatorExceptions?

Similar Messages

  • How do I know if the program has been downloaded to another computer or not?

    How do I know if the program has been downloaded to another computer or not? Also how do I know if it is the educational version or not?

    What exactly? Your questions don't make much sense since you failed to provide an explanation what problem you actually have, what program you actually mean and so on. That aside, edu versions are technically not different from the normal programs, just their licensing is different.
    Myleniumu

  • How do i know if my iphone has been syncronize with other device and how to remove it.?, how do i know if my iphone has been syncronize with other device and how to remove it.?thanks

    how do i know if my iphone has been syncronize with other device and how to remove it.?, cuz. I had found out that one of my co-work who was updatinng my phone was syncronizing to his name..in this case my photos is been syncronize to his acount.pls help...
    thanks

    Hey Cherielly,
    Thanks for using Apple Support Communities.
    Since you are having an issue with syncing to a different apple id. You may want to make sure you are signing in with the correct apple id.
    iOS: Sign in with a different Apple ID in the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht1311
    Have a nice day,
    Mario

  • Hi, for Iphone tips page "see when a message was sent " , then how do I know that the message has been read?

    Hi,
    for Iphone tips page "see when a message was sent " , then how do I know that the message has been read? Thanks  

    Hi Bhavesh,
    Please see my replies inline:
    > 1. If i remember your ealier thread correct also, I
    > would suggest that you drill down in Where Did the
    > Error Occur. Instead of no restriction, select
    > Adapter Engine and also your Corresponding Adapter
    > and then trigger the error message and check if the
    > alert is triggered.
    When I click on "Where did the error occur" -> "Adapter Engine", I do not have a choice of errors from the dropdown. I only see one option "*".
    Is this right?
    > 2. ><i>When I click on "Alert Inbox" ->
    > "Subscription", I get a message "The table does not
    > contain any entries". Is this correct?</i>
    >
    > Yes this is correct. You have defined in your alerts
    > as the option as FIED RECIPIENTS. You also have
    > options like Reciepients via User Role and
    > Subscription Authorization in ALRTCADTDEF.
    >
    I see.
    I've also managed to overcome this problem by selecting "Subscription Authorization" in the Alert Category Definition page, and entering SAP_XI_MONITOR as one of the roles.
    After that, I am able to see a the alert category defined. By default it's already subscribed, because I'm using the same user - PISUPER.
    I saw in another post that the option "Suppress Multiple Alerts of this Rule" should be left unchecked. I tried that, but I still do not see any alerts raised in ALRTDISP.
    What did I miss?
    Please help.
    Thanks.
    Ron

  • HT5824 hi..i m not sure if i have used the icloud before..how do i know if my iphone has been backed up by icloud?

    hi....i m very blur at this...not sure if i have used icloud before...how do i know if my iphone has been backed up ?
    it all happened 2 days ago when my iphone lost everything after updating to ios7. I couldn't even restore back up even i have done my back up before updating...
    just trying my luck here , if anyone can help he to retrieve my photos and notes.

    Access iCloud.com on a computer to check
    http://support.apple.com/kb/PH2702
    Lost or Stolen iOS device  >  http://support.apple.com/kb/HT5668

  • How do I know if my iPad has been virus infected through an attachment in an email opened

    How do I know if my iPad has been infected by a virus through opening an email attachment

    Read http://en.wikipedia.org/wiki/IOS_jailbreaking
    It will void your warranty and cause Apple to no longer support your mobile device.
    Allan

  • How do I know if my Mac has been infected with the virus

    I recently was asked to download an Adobe Acrobat reader update but before I was made aware that the current virus was contained in a similar request, I downloaded what I assumed to be a legit update.  I currently do not use my mail program on my Mac so am unaware of any spam being distributed from the computer.  How can I identify if my computer has been infected with this Trojan Horse virus?

    Two Helpful Links Regarding Flashback Trojan
    A link to a great User Tip about the trojan: Flashback Trojan User Tip
    A related link in the tip to a checker: Malware Checker Dowload Link
    A Google search can reveal a variety of alternatives on how the remove the trojan should your computer get infected. This can get you started.
    For now I recommend the User Tip from etressoft to detect and remove:
    Checking for and removing the "Flashback" trojan

  • How do I know when my unlock has been processed?

    Hi all,
    Sorry for what's probably a dumb question, but I can't find an answer anywhere.
    I have an AT&T iPhone 4S, and I recently called them to request an unlock.  Since it was on a business account while under contract, they had to submit a request directly to Apple instead of just using the web form.  However, they told me that they never received anything from Apple during the process that would indicate that I'll be notified once the request has been approved.  So from my understanding, completing the process on my end involves tethering to iTunes and restoring the phone - but how will I know when it's actually time for me to do that? 
    I should add: I am no longer with AT&T, or in touch with anyone else who is still on the account that I had been part of.  So if anyone else on that old account gets notified, I won't know.  And since I'm not with AT&T myself, I feel doubtful that they'd let me know.
    Thanks for your help!

    Apple does Not Unlock phones... This is done by the Carrier.
    About Unlocking...
    http://support.apple.com/kb/HT5014
    Also See this  AT&T Unlock Eligibility

  • I recently upgraded from Firefox 3.6.5 to Firefox 4.0.1 and status updates after pressing "Sync Now" which tell you that data sync is in progress or has finished, have STOPPED appearing. How do I know whether my data has been synced or not?

    More specifically even when I click Tools->Sync Now nothing happens. Also when I do a "Reset Sync" via Tools->Options->Firefox Sync, nothing happens. Meaning no progress bar appears indicating that data is being synced or has been synced, as it used to happen in earlier versions of Firefox. Is there a way to know after pressing Sync Now that my data has been synced?

    There is no visual representation to show that it has worked or is in progress, but if it fails you get a bar appearing at the bottom of the screen telling you that the sync failed.
    If you add the Firefox Sync toolbar button to the toolbar, hovering the mouse over the button will give a tooltip showing the last date/time of the last successful sync. For details of how to add the button see https://support.mozilla.com/kb/how-do-i-customize-toolbars

  • How can I know if my iphone has been in contact with water?

    I've had lost my iPhone 4 in the snow with a rubber/plastic case over it... And how can I know my phone did got humidity in it or not if it is still working well? And also if it is still possible to be under a warranty ??

    If it has water damage the warranty is void.
    How to check for water damage: https://support.apple.com/kb/ht3302

  • HT201328 How wil I know if my phone has been unlocked?

    I've just phoned t-mobile to have my phone unlocked, how will I know when this has happened

    see here for process
    http://support.apple.com/kb/HT5014

  • How do I know if PS CS5 has been activated?

    How can I tell if PS CS5 has activated itself? If it has can I remove the internet connection from the computor without causing problems with the software?

    If you see Deactivate... in the Help menu, it's activated.
    I've never had any problems using Photoshop on a computer that's disconnected from the Internet, though to be fair I've never done that for more than a few weeks at a time.
    -Noel

  • How do i know when a datagrid has been sorted?

    i can figure out what/how a datagrid has been sorted but i can't seem to catch *when* it's been sorted. there's no "sort" event, headerRelease is happening before the sort and CollectionEvent & DataChange aren't firing when sorted. left scratching my head.
    any suggestions?
    thanks.

    thanks alex, building the test case helped me work out the issue (i think).
    test case has creationComplete that builds dummy data ArrayCollection (bindable), refreshes the datagrid dataprovider, then adds the eventListener. if i put the addEventListener call before any of this, it gets ignored.
    in the real app, the data is coming in via coldfusion (cf) remoting calls. i was adding the eventListener before any data was returned, guess i'll have to work out something in the result handlers.
    timing bits my ankles off again ;-)
    thanks for the help.

  • How do I know if my laptop has been hacked?

    I was logged into my Facebook account. My friend started a chat...at least that's what I thought initially. I got suspicious and kept quite. That's when he told me he was a hacker. He will find out about me. Then he started rattling off where I was logged in a while back...where I am now...my telephone number...he said my Mac is with him...all of it....
    What does he mean? Is my account hacked? Can he see all my files, etc on my Mac. How do I solve this issue if this is actually true. Please help somebody! This is scary! Mnay thanks in advance!!

    Hello Matt,
    Thank you so much for your advice. I have now re-set all my passwords to be on the safer side. I have also checked System Preference - Sharing. I ddn't have any sharing services on.
    My "friend" is my best friend....we were on Skype earlier. Then he said he was going to sleep. He never logs out from all his accounts. An hour later from his Facebook account I received a chat message "y u online". Pretty innocent and I replied surprised why he was online. Below is some of what this person wrote.....
    am just a hacker......... u can talk, it is safe
    on an mac laptop... be careful what u save............ this is the most vulnerable  piece of **** that apple created...........
    are u with me.......... am sure u are intrigued.
    now even if u change yr status to offline I no what u doinggg
    easy see
    technology
    ur mac is with me. all of it
    just looking.
    cannot hide
    Just a while when my best friend woke up he was surprised to know all this happened last night as I had text him. His account is hacked for sure. The person wrote my Mac is with him. Do you think he could have hacked my account too? How do I know? How can I know?
    Thanks,
    M
    PS:- The above chat scared me as he also reeled off where I was logged in from as well as my phone number!

  • How do i know my text message has been delivered

    how do i know if my text mesages have been received

    gibson24600 wrote:
    Hi, as I said to another helper, my old samsung us to give an audible
    tune/beep to let me know it had arrived at the destination, whether read or
    not.
    As did my nokia......
    H
    On Feb 10, 2015 12:48 PM, "Apple Support Communities Updates" <
    So switch those phones if that is so important to you. At least the iPhone protects the privacy of the recipient. It is up to the recipient to activate message receipts on their part.

Maybe you are looking for

  • How do I map custom property from portal api ptsearchresponse?

    I want to map the search results to my datatable. I can execute the search fine. But how do I map the property value? My property id is 101. In other words which ptSearchResponse method do I use?                 IPTSession ptSession;                

  • Credit Card Purchases

    Hello, We are trying to record purchases by credit card but we want to post the purchase with a debit to the expense account and credit a "Credit Card Clearing Account".  We would like to do it this way to keep track of purchases with multiple vendor

  • 10.3.4 on intel mac?

    Is it possible to put server 10.3.4 on my intel mac? ibook g3? imac g4? I have tried to install apple server on my external hard drive, which I recently reformatted and according to disk utility should be able to start up from. But when I try to inst

  • Installation Trouble with Oracle BI Discoverer Desktop and Discoverer Administrator 11.1.1.3.0

    Hi All, I'm having installing this software on my Window's 8.1 64-bit machine. I'm going to Disk1 > Install > Win64 > setup.exe. The Oracle Universal Installer shows up, passes the swap space and monitor checks, and stays on "Preparing to launch Orac

  • Dynamic elements in video

    I am looking to create flash movies that include video and that have dynamic text in them. Basically the concept is we send out an email with a link in it that has an ID in a query string value. Once the page loads It hits our database and pulls out