JSF Validator option disables my submit functionality

Hi,
I introduced a Validator in an InputBox, which is tied with the Backing Bean validation method. After this inclusion, the validation method is getting invoked, but the submit is not getting invoked. Before introducing this validation, the page submit was working fine. Now if I remove the validation, then also the page submit is working.
So somewhere the validation stops the page submit.
Please help me to resolve this issue.
..Thiruppathy.R

Yes. My validation runs as expected.
If I supply an invalid value, then I am able to see the error message in the page which is thru <h:messages/>.
If I pass a valid value, then neither I am able to see any error message nor the page is submitted.
My jsf code is
<h:inputText accesskey = "true" id="Login_Name"  value="#{LoginBean.loginName}" styleClass="login_input"
     validator="#{LoginBean.defaultValidator}" required="true">
     <f:validateLength  maximum="35"/> 
</h:inputText>
<h:commandButton value="Submit" style="margin-left: 15px; margin-top: 8px;" action="#{LoginBean.submit}" image="../images/btn_continue.jpg"> My Backing Bean validator is
     public void defaultValidator(FacesContext context, UIComponent component, Object value) {
          System.out.println("value::"+value);
          if (value != null) {
               if (value.equals("admin1")) {
                    System.out.println("It matches with 'admin1'");
                    return;
          ((UIInput)value).setValid(false);
          FacesMessage msg = new FacesMessage("I am a real exception");
          context.addMessage(component.getClientId(context), msg);
     }As per this code, 'admin1' is the only valid value. But even if I give the value 'admin1', the page is not getting submitted.
Please help me to find where I am wrong.
Thanks
Thiruppathy.R

Similar Messages

  • Disable Wizard (limited functionality) under Analysis Editor Preference Tab In OBIEE

    Hai Experts
    I want to disable this option(Disable Wizard (limited functionality) under Analysis Editor Preference Tab) for all users globally.
    This option should not appear in Preference tab of OBIEE
    Regards
    Saurabh Anand

    Hi,
    It is a standard application privilege you can find and set under "Administration" -> "Manage Privileges":

  • Messaging Server 3.x: Is there an option to enable and disable the ETRN function?

    Is there an option in Messaging Server to enable and disable the ETRN function?
    <P>
    Yes. You can add the option for enabling and disabling the ETRN function by
    modifying the code in the file <BR>
    <P>
    <I>server-root</I>
    bin/mail/admin/html/SMTPChannelOptions.html
    <P>
    The original code to be modified will appear as follows:<BR>
    <P>
    <!-- ELEM txt="Allow SMTP command 'EXPN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
    No
    <P>
    Modify the code to look like this:<BR>
    <P>
    <!-- ELEM txt="Allow SMTP command 'EXPN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
    No
    <!-- ELEM txt="Allow SMTP command 'ETRN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="no" -->
    No
    <P>
    Making these changes will create an extra option to enable and disable the ETRN
    function on the SMTP Options page in the Administration Server.

    Yes, this is possible. In Cisco Webex Administration->Settings->Audio you can choose your audio (system-wide) options:
    WebEx Audio:
    Call In and Call Me service – Enables users to attend a teleconference by calling specified phone numbers or by receiving a Call Me call from the system.
    Call In – Enables users to attend a teleconference by calling specified phone numbers.
    OFF – Disables all calling features.
    Voice connection using computer
    ON
    OFF
    See also this section in the administartion guide.

  • Where to find sapUrMapi_checkKey - how to disable "enter - submit"?

    hi guys,
    where can I find in se80 BPS application javascript "sapUrMapi_checkKey"?
    I need to disable submit functionality when user during planning press enter button.
    Thanks
    David

    Typically you would have a Thinkvantage folder.  In it you will see Lenovo Fingerprint Sofware.  There you can enroll your digits.
    If you have problem enrolling you cac clear out the fingerprint stored memory option in the BIOS.  F1 at bootup.
    Best of Luck,
    Mark 
    Message Edited by aselgat on 11-03-2008 11:01 AM

  • How to disable Save & Print functionality in PDF form?

    Hi,
    This is the requrement, client need to disable Save & Print functionality in PDF form. (They not allow employee save & print the hrforms payslip)
    May I know how to do it. Thank you.
    What is the parameter value in structure SFPOUTPUTPARAMS  that I need to set in order to  disable Save & Print functionality ?
    call function 'FP_JOB_OPEN'
        changing
          ie_outputparams = SFPOUTPUTPARAMS
        exceptions
          others          = 1.

    Hi Nayan,
    I'm the person who did the WD as well, using IFrame to contain the PDF binary. WD site didn't contro the binary source.
    I pre-define the 'FP_JOB_OPEN' before calling the PDF generation.
    Optional: Set output parameters
      gs_outputparams-nodialog  = ''.
      gs_outputparams-preview   = ''.
      gs_outputparams-getpdf    = 'X'.
      gs_outputparams-nopreview = 'X'.
      gs_outputparams-noprint   = 'X'.
      gs_outputparams-noarchive = 'X'.
      gs_outputparams-nopributt = 'X'.
      gs_outputparams-arcmode = '1'.
      gs_outputparams-noarchive = 'X'.
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = gs_outputparams
        EXCEPTIONS
          OTHERS          = 1.
    Regards,
    Eric

  • Trying to disable my Submit button once if i click submit

    Hi
    I am tryign to diable my Save button once if i click save button,
    i written the code as follows, but its disablign once if i click save and immediately its enabling again.
    this is my java script code.......
    document.getElementById("xx").disabled=true;           
         frm.submit();     
    <input type="button" id="xx" value="SaveAccount" onclick="doProcessForm();"/>
    plz help me.
    Thanks
    Venaktesh

    Well, it seems like once you get the response back, the submit button is enabled again and it wud happen unless you explicitly disable it again in some onload method..(if you want it to get it permanently disabled for further clicks)..
    So, you need to have a hidden field like below in your form
    <INPUT TYPE="hidden" NAME="FirstTime" value="<%=FirstTime%>">and in the function, where your form gets submitted, change it to value
    document.getElementById(FirstTime).value = "N";and in the onload function depending on the value of FirstTime, enable/disable the submit button.

  • How to disable a submit button on click using javascript

    Hi,
    We have built custom pages for mobile device (PDT) using OAF.
    The application is running on mobile IE 6.12 browser. In mobile platform, the cursor style is not changing to hour glass upon clicking.
    Due to this, user is able to click the same button multiple times before the operation is complete and it is getting submitted multiple time. But the same is working fine in Desktop browsers.
    We have tried with ((OABodyBean)body).setBlockOnEverySubmit(true); But the API documentation states that
    "Sets If set to true, user input will be blocked after EVERY submit (not just PPR submits). This attribute is not supported on the following agent types: pda, phone, voice."
    Hence, I am trying with javascript to disable the submit button after the first click. The issue is, even in the desktop browser
    I am not able to get the button disabled after first click. Please help me.
    I have tried the following statments in PR. But none of them seems to be working.
    //Try 1: directly using id
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("document.getElementById('UpdateBN').disabled=true;document.getElementById('UpdateBN').submit()");
    //Try 2:
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("javascript:this.disabled=true;this.form.submit();");
    //Try 3:
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("this.disabled=true;this.form.submit();");
    //Try 4: using a function
    static final String JS_MULTI_CLICK = "<Script LANGUAGE=\"JavaScript\"> "
    +" function DisabSub(btn)"
    + "{"
    + "btn.disabled = true;"
    + "}"
    +" </Script>" ;
    OARawTextBean rawMultiClick = (OARawTextBean)webBean.findIndexedChildRecursive("JSMultiClick");
    rawMultiClick.setText(JS_MULTI_CLICK);
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("javascript: var obj =disable(this);return DisabSub(obj);");
    Can any one please help.
    Thanks in advance.
    Regards
    Saravanan

    Hi,
    Create two submit buttons A and B adjacent to each other.
    On page Load ,make A as rendered false and disabled true and B as rendered true. using SPEL.
    now on click of button B make button A as rendered true and Button B as rendered false through SPEL.
    In this way on button click the button will become disabled without the use of any javascript.
    Try it if it helps you...
    Thanks,
    Gaurav

  • Disabling standard menu function

    Hi,
    We have a requirement where there is a need to disable the standard menu function in CO02 based on the user.After entering the order number,it takes to next screen. In that screen,i have to disable the menu option which is in Functions --> Restrict Processing --> Technically Completed. Can any one tell me how to acheive this.
    Regards,
    Krishnam Raju

    Hi,
    I am able to disable the menu function by creating the enhancement implementation for the spot 'es_saplcozf' in the function module 'CO_ZF_BUILT_FCODE_EXCL_TAB' .But i am not sure whether this is the right approach or not. Can any one give me the suggestions ?
    Regards,
    Krishnam Raju
    Edited by: krishnam raju on Dec 30, 2008 12:01 PM

  • Validity option not getting displayed in Bank Information ESS

    Hi Experts,
    Can you please advise how to enable the validity option in the screen for bank bank information. Currently ESS->Personal Profile->Bank Information->Add other bank there is no option to specify the date range eg : create a bank record for a future dated record ( screen shot attached). My understanding is this option is part of the standard and should come towards the bottom of the screen.
    I have checked the FPM_FORM_UIBB->HRESS_CC_PER_DTL_BANK_AU and it seems all okie. Can you please advise.Your help is highly appreciated.
    Cheers,
    Shyam

    Hi All,
    Got the solution. The view V_T7XSSPERSUBTY was not maintained correctly. Thanks.
    Cheers,
    Shyam

  • Is there an issue with Safari in Iphones and Ipads where it does not recognize option disabled="disabled" tag properly?

    Greetings everybody,
    I have run into a peculiar problem with the Safari browser on mobile platforms (IPad, IPod, IPhone) which I hope I can find a solution for in this community.
    I just launched a new website where I sell products with certain variations, for example please view this link: http://www.finerribbon.com/aegean-single-face-satin-ribbon.html
    On this particular product, the product variants are supposed to work in such a way where:
    If you select the value "1/8" from the "Choose Ribbon Width" field
    THEN
    The only options active and available to choose from in the "Choose Roll Size" field should be: 500 Yds, 20 Yds & Sample Swatch
    Now, if we browse to the above link in Safari using a desktop or a laptop, there are no problems at all, but if we browse to the above link using an IPhone or an Ipad, then we have a problem where all the options are available regardless of the values chosen, basically the above functonality does not work.
    I was told that there an issue with Safari in Iphones and Ipads where it does not recognize option disabled="disabled" tag properly, is this true? Can anyone advise me if there is a solution to this problem? I would sincerely apperciate it.
    Thank you very much for your time and help!

    Hi...
    I have run into a peculiar problem with the Safari browser on mobile platforms (IPad, IPod, IPhone) which I hope I can find a solution for in this community.
    Now, if we browse to the above link in Safari using a desktop or a laptop, there are no problems at all, but if we browse to the above link using an IPhone or an Ipad, then we have a problem
    At the top of this window you'll see the following:
    Apple Support Communities > Mac OS & System Software > Safari > Discussions
    This the Safari forum for the Mac OS X.
    Better that you post your topic here  > Developer Forums: Apple Support Communities
    I do see on my iPad what you are rreferring to. But you shoudl get the feedback you need in the developer forum.

  • How can i disable a submit button and execute submit_action method on click

    Good Day,
    On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
    Thanks in advance.

    I tried this out on one of my pages to see if it works.
    First, I added the following JavaScript to my submit button's onClick event:
    this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
    I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
    var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
    The next thing I tried was to change the onSubmit event code:
    var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
    See if that works for you. If not then I'm fresh out of ideas.

  • SUBMIT FUNCTION ON COMPRESSOR IS NOT WORKING

    Hi Everybody!
    I was overseas for a while and when I came back to work, my workstation was updated I guess.
    I'm using the FINAL CUT STUDIO 3, I did not any updates yet.
    My issue is when I'm trying to send a sequence, from the timiline in final cut (SEND TO/COMPRESSOR) everything seems to be normal. Once I do all the settings and destinations on COMPRESSOR, and I'm ready to start the render, I'm able to see the SUBMIT button, but it seems to be inactive...
    Probably u have already figured out the way to fix this issue...
    please help guys, this is delaying my overall process so much!
    Thanks!

    Hi everybody!
    Compressor don't works! I can't use the submit function because it doesn't work. Help me!
    I removed compressor and Qmaster and re-installed them: in this way the submit function works and I can save the job on "this computer", but when I download the compressor's upgrade the submit function stops to work.
    I'm sorry, I'm italian and my english is very bad!

  • How to Disable battery charging Function?

    Hi;
    I have a question about charging funtion of my "HP Compaq Business Notebook, 6720s":
    How can I disable "battery charging" function in windows 7? Is there any "advanced setting change" or "software"  that while battery is in its slot, stop my notebook from charging its battery?
    Thanks

    After some days trying many methods, yet I haven't find a solution to my problem. Then I ask is there  any one
    knows which software should I download for HP Compaq Power Management (similar to the software that Huffer
    mentioned, but that was for Lenovo) or which registery or BIOS change should I do , so that I can manually disable
    charging function of laptop, or at least put a starting level that up to that level, laptop won't start
    autolatically to charge battery, because in this manner once that my Battery reaches to below 100%, instantly begin
    to be charged & it would decrease its life time. Please consider that because of my power cable is to some damaged, sometimes it suddenly disrubt & cause my laptop abruptly shut down, then necessarily the battery would always be connected tob prevent this suddent effect.
    If any one could help me, I would appreciate him a lot.
    Regards

  • How to disable the purchase function?

    Anyone know how to disable the purchase function from the ipad2? How to disable and empty the payment credit card inform? If not, is it secure?

    None for payment
    After establishing the Credit Card account (i.e. after you have made purchases), you can remove the credit card information by editing your payment info, choosing "None".

  • I've just downloaded an update to my Flash player and it seems to have disabled all video function on my Macbook. Any advice?

    I've just downloaded an update to my Flash player and it seems to have disabled all video function on my Macbook. Any advice?

    Hi MamaTabs,
    If you are having issues signing in to iCloud on your Windows machine, you may find some of the troubleshooting in the following article helpful:
    iCloud: Account troubleshooting
    http://support.apple.com/kb/ts3988
    Also, you may want to make sure that you are running the most recent version of iCloud Control Panel for Windows:
    Apple: iCloud Control Panel 3.1 for Windows
    http://support.apple.com/kb/dl1455
    Regards,
    - Brenden

Maybe you are looking for

  • Problem opening Exccel in Portal

    Hallo, i have problem when opening an Excel file in KM Kontent. The file will be opened in InternetExplorer and not in Excel. Is there a setting which can be set ? many thans for help Best regards Ronald

  • Best way to implement view filtering when using AssocoationConsistent(true)

    Hi, I need to retrieve all existing rows on a table as well as all the newly created rows in the entity cache for a partial key. ExecuteQuery, with AssociationConsistent set to true, will return the rows on the DB and ALL the newly created rows in th

  • Configure ePortfolio for Crystal Reports 9 Report Application Server for Users to Run Reports

    Post Author: lacc CA Forum: Crystal Reports Sorry for this basic question but Crystal 9 is no longer supported and I am having trouble finding any documentation about how to configure ePortfolio let alone obtain any help from Crystal support. I have

  • [HELP] Centering External SWF

    I've read dozens of post on this forum as to how to do this, But I cannot get my own to work. I am loading an external swf file into an empty movieclip. I would like the external swf to be centered initially, and after page resize. Can someone PLZ as

  • Adobe Interactive Form are not Interactive

    Hi Gurus, I'm trying to follow this guide https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7089e001-fcd3-2b10-b08d-f36d78326c6e?overridelayout=true. All works fine, but the interactive Forms that send by email are not interactive.