How to skip validation on page refresh

Hello,
I found related posts but they don't point me in the direction of a possible solution.
I have a simple page
<HTML>
<HEAD>
<title>Page 3</title>
</HEAD>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<body>
<f:use_faces>
<h:form id="form1Id" formName="form1">
<h:input_text id="form1Input" valueRef="UserSettings.newEmail"><f:validate_required /></h:input_text>
<h:output_errors for="form1Input" />
<p><h:command_button id='Page3CommandId' commandName='ok' label='ok' action='success'/>
</h:form>
</f:use_faces>
</body>
</HTML>
If I first load it, it works ok, but if I refresh (or revisit the page), a validation error is rendered.
Is there anyone who can point me to a possible workaround or point me to some reading material that could help me move forward.
Thanks,
Peter

Thanks for the reply. As far as I understood all this, the UserSettings bean is in session scope.
The faces-config.xml file contains
<managed-bean>
<managed-bean-name>UserSettings</managed-bean-name>
<managed-bean-class>webrss.UserSettings</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>

Similar Messages

  • Skip validation on page definition

    Hi all,
    That article explain how to skip validation using page definition
    http://mahmoudoracle.blogspot.com/2011/08/skip-validation-in-adf.html
    Thanks

    chk this
    http://jobinesh.blogspot.com/2009/08/how-to-skip-validation.html

  • How to skip validations in ADF on click of cancel button

    Hi,
    I am new to this technology. i Have used ADF components required property to do Required filed validations. Whne i click on Cancel button i dont want the validations to get executed. How to skip validations in ths case?
    I am using ADF 11g and JSF 2.2

    Set immediate property of the cancel button to true.
    Check this out.
    http://jobinesh.blogspot.com/2009/08/how-to-skip-validation.html
    -Arun

  • How to skip validation using serverListener

    Hi,
    I am using Jdev 11.1.2.3.0
    My requirement was to called some action using the keyboard key.
    I tried with Access key first but its behaving differently in different browser.
    Crome: allowing action on access key press.
    IE : setting the focus on commandLink.
    Note : I have defined accessKey for RichCommandLink.
    Then i used the different approach which is as follows:
    1- Register the keyBoard handler to document. on beforePhase Event.
    2- Added the js file as follows :
    Javascript file:
    var keyRegistry = new Array();
    keyRegistry[0] = "alt 1";
    keyRegistry[1] = "alt 2";
    keyRegistry[2] = "alt 3";
    keyRegistry[3] = "alt 4";
    keyRegistry[4] = "alt 5";
    keyRegistry[5] = "alt 6";
    keyRegistry[6] = "alt 7";
    keyRegistry[7] = "alt 8";
    keyRegistry[8] = "alt 9";
    keyRegistry[9] = "alt 0";
    function registerKeyBoardHandler(serverListener, afdocument) {
      _serverListener = serverListener;
      var document = AdfPage.PAGE.findComponentByAbsoluteId(afdocument);
      _document = document;
      for (var i = keyRegistry.length - 1; i >= 0; i--) {
        var keyStroke = AdfKeyStroke.getKeyStrokeFromMarshalledString(keyRegistry);
    AdfRichUIPeer.registerKeyStroke(document, keyStroke, callBack);
    function callBack(keyCode) {
    var activeComponentClientId = AdfPage.PAGE.getActiveComponentId();
    // Send the marshalled key code to the server listener for the developer
    // To handle the function key in a managed bean method
    var marshalledKeyCode = keyCode.toMarshalledString();
    AdfCustomEvent.queue(_document,
    _serverListener, {keycode:marshalledKeyCode,
        activeComponentClientId:activeComponentClientId}, true);
    // indicate to the client that the key was handled and that there
    // is no need to pass the event to the browser to handle it
    return true;
    *jspx page:*
            <f:view beforePhase="#{KeyboardHandler.registerKeyboardMapping}">
    <f:loadBundle basename="properties/Labels" var="labels"/>
    <af:document id="adfDocument">
    <af:resource type="javascript" source="/js/keyboard.js"/>
    <af:serverListener type="keyboardToServerNotify" method="#{KeyboardHandler.handleKeyboardEvent}" />
    </af:document>
    </f:view>
    *Java Code :*
            public class KeyboardHandler {
    public KeyboardHandler() {
    super();
    public void registerKeyboardMapping(PhaseEvent phaseEvent) {
    if (phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExtendedRenderKitService extRenderKitService =
    Service.getRenderKitService(facesContext,
    ExtendedRenderKitService.class);
    List childComponents = facesContext.getViewRoot().getChildren();
    //First child component in an ADF Faces page - and the only child - is af:document
    //Thus no need to parse the child components and check for their component family
    //type
    String id =
    ((UIComponent)childComponents.get(0)).getClientId(facesContext);
    StringBuffer script = new StringBuffer();
    script.append("window.registerKeyBoardHandler('keyboardToServerNotify','" +
    id + "')");
    extRenderKitService.addScript(facesContext, script.toString());
    public void handleKeyboardEvent(ClientEvent clientEvent) {
    String keyCode = (String)clientEvent.getParameters().get("keycode");
    System.out.println("KeyCode ::"+keyCode);
    //Here on basis of numeric key 0-9 i will decide different action
    This is working fine and launching the first action successfully.
    *Now problem is that when i invoked second action its asking me enter data for required fields.*
    If i was invoking serverlistener from button than I can control immediate property of command button. but here serverListener is getting called form document. How can I avoid validation here.
    Can anybody please me?
    Thanks a lot in advance.
    -Amit Sharma
    http://amit-adf-work.blogspot.com/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    If you want to skip all validation until time of commit you can do as described here
    http://andrejusb.blogspot.com/2012/12/skip-validation-for-adf-required-tabs.html

  • How to skip validation for tag file, or jsp fragment?

    hi
    I have some jsp fragment and tag file in a workshop 10 project
    workshop blame me about the jsp fragment (no start/end tag)
    and unable to publish to server
    is there a way to skip validation on some files?
    I do found an check box call "validate JSP fragments" and I have un-ticked it. It does nothing.
    please help

    Yes, you can turn off validation either on project/folder/individual file.
    Project:
    Project > Properties - Validation AppXRay - un-check "Validate Workshop managed documents" (this is not recommended, you may loose entire AppXRay validation).Folder:
    Project > Properties - Validation AppXRay - Exclude Folders tab, if all the JSP fragments are present in a particular folder (under WebAppRoot), you can pick that folder to be excluded from AppXRay validationFile:
    Help > Help Contents - BEA Workshop User's Guide > Common IDE Tasks > "Using AppXRay" - Live Synchronization of artifacts with AppXRay - On this page scroll to the bottom you will find a table with list of comments that can be included in a JSP file to exclude file level validation.Ex:
    <%--<nitrox:set-property property="validation" value="true"/> --%>
    Controls all validation in the IDE. The default value of true enables validation.

  • How to Skip validation

    Hi ,
    I am using Jdeveloper 11.1.1.3 .I am having an af:table in my page, and i have a command link which calls a method in a backing bean. While clicking on the command link i want to skip the validations that happens in the table rows, without using immediate="true"
    Is this possible?
    Expecting some guidance.

    Hi,
    If i use immediate property am getting one another problem. I have two operations to be done ,one is to create a new record and another one is to delete a record.
    I have two command links.*Add link* is using CreateInsert and Delete link is using Delete operations. I am explaining the problem bellow.
    1.I have two LOV fields in the row.First i insert a row and fill values in the two LOV fields *(for example 1st field-"AB" 2nd field-"1234")*.
    2.I delete this record using Delete command link.
    3.Then again i insert a new row using Add command link.
    4.In this new row in the first LOV field i give the same value that i gave last time -that is "AB". While giving this value it automatically brings up the value "1234" in the second field.
    This happens only if i set true to the immediate property of the Delete command link.I have not used any ppr also.If i dint set the immediate property then the insertion and deletion works fine,but it is doing validation when i click these links.So i want to skip the validation while clicking Delete link.

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE!

    In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE! Thank god Pages 09 is still there.

    …and the other 98 missing features.
    Just use Pages '09, which should be in your Applications/iWork folder.
    Rate/review Pages 5 in the App Store.
    Peter

  • XML Validation in PI 7.1 - Restart and skip validation possible, but how?

    Hello all,
    I read about schema validation in PI 7.1 and did a few tests on my own, but could not restart and skip validation for invalid payloaded messages. The documents say it is possible.
    Anyone know how? Thanks.
    BTW, I really think putting the schemas in server file system will cause a lot of authorization trouble in enterprises. No one gives access to the server filesystem and I don't think they will also like to open the required subdirectories for share. Asking the basis team to create the folder structures and maintaining schemas would be another pain. Don't you also think that SAP could find a better approach, like automatically uploading the schemas to the filesystem, or validating them from repository directly if possible?
    Kind regards,
    Gökhan

    Hi Gökhan,
    I am facing the same issue.
    I set up outbound xml validation in receiver agreement and tested it with valid and invalid messages.
    The validation works fine.
    But in case of validation error I tried to restart with skipping the validation. But this wasn't possible.
    I am always facing the same valdiation error.
    I already tried all different tools I know (sxi_monitor, message monitoring in rwb and in nwa)
    I am working on PI 7.11 SP6
    Did you find a solution for skipping the validation for a single message out of the monitoring?
    I know that there is the possibility of deactivate the validation in receiver agreement but thid doesn't meet the requirement of skip the validation only for a single message.
    Maybe anyone else faced and solved this issue already.
    Thanks in advance
    Jochen

  • How can skip other pages in smart forms ?

    Hi,
    In Smart forms I have 10 to 20 pages out put data, and I want print only Page no. 11th or 15th  only. How can skip other page or how can got output? Please suggest me.
    Thanks & Warm Regards,
    Sanjay Garhpandey.

    Hi,
    Use this parameter SSFCOMPOP-TDPAGESLCT .

  • HT4550 My safari is permanently on safe mode even after turning it of the pages refresh it goes back into safe mode how do i remove it

    My safari is permanently on safe mode even after turning it of the pages refresh it goes back into safe mode how do I remove it.

    Hold the shift key down and launch Safari.
    If not, try  suggestions made in this article.
    http://reviews.cnet.com/8301-13727_7-57393558-263/tackling-macs-that-always-boot -to-safe-mode/
    Best.

  • How to skip to a new page within Pages?

    This always used to work with ''Ctrl + Enter'', but now i've upgraded to the newest Pages, this doesn't work anymore, this is actually driving me mad and i can't find anywhere how to skip to a new page.. this is really anoying when working with big files where i have to change things on certain pages.
    Thx in advance

    Pages 5.1 is a bug - ridden disaster lacking about 100 features present in Pages 09. There are many complaints of data loss, corrupted Filene, docs that can't be opened etc.  do not use it for any serious work. Pages 09 should still be on your system. Use that instead

  • How to avoid multiple copies of data in page refresh

    How to avoid multiple copies of data in page refresh

    If you are talking about a page with an insert query, ignore the fact that it's a page refresh.  It's just another way that someone can insert duplicate records.  I like to handle this in my insert query.
    insert into thetable
    (f1, f2, etc)
    select distinct
    value1, value2, etc
    from some_small_table
    where you don't already have that record

  • How to refresh captcha without full page refresh

    Hi,
    I am using simple captcha implementation using the following link.
    [http://www.oracle.com/technetwork/developer-tools/jdev/captcha-099103.html|http://www.oracle.com/technetwork/developer-tools/jdev/captcha-099103.html]
    Captcha image refreshes page reload but if i set partialSubmit=true It does not changes the image of the servlet . What is the way to refresh image .
               <af:image  id="iCaptcha"     
                                            source="/captchaservlet"
                                            inlineStyle="width:122px; height:49.0px;"
                                            partialTriggers="cil2"
                                            binding="#{AfProMSDSSearchAction.captchaImage}"/>When I reset the image source by reseting it by javascript it does not refreshes .
      <af:resource type="javascript">
              function loadCaptchaImage() {          
                var captchaURL = "/captchaservlet?rand=" + Math.random();           
                parent.document.getElementById("pt1:s12:iCaptcha").src=captchaURL;
            </af:resource>

    Hi frank,
    I got the solution I can change the Captcha image without full page refresh by just adding temparary request parameter to that image so that url changes and it calls servlet again.
    Below code will add random number as a request parameter to the servlet url so that url changes everytime.
                    RichImage image = (RichImage)JSFUtils.findComponentInRoot("iCaptcha");
                    String randomString= String.valueOf(Math.random());
                    image.setSource("/captchaservlet?rand="+randomString);          
                    RichPanelGroupLayout capImgPGL = (RichPanelGroupLayout)JSFUtils.findComponentInRoot("capImgPGL");
                    AdfFacesContext.getCurrentInstance().addPartialTarget(image);
                    AdfFacesContext.getCurrentInstance().addPartialTarget(capImgPGL);

  • How to avoid Page Refreshes ?

    Hi !
    i'm new to jsp and i'm trying to avoid total page refreshes each time some data is posted.
    in asp.net there is something called script callback. i'm looking for something either like dhtml DOM Objects or java Applet but in JSP.
    thanks in advanced !!!

    I don't think you can easily.
    ASP.net can do that sort of thing because it is hotwired into the IE browser and windows environment.
    The dhtml DOM objects are still available for client side manipulations, but you can't make any server calls without refreshing a page somewhere.
    One workaround is to do your submits to an "invisible" frame and when that frame loads back copy the values with javascript. Its far from the optimal solution though.
    Cheers,
    evnafets

Maybe you are looking for