[ADF, JDev12.1.3] step-recording-shape built with fragments: validation should not happen when you click on the "back" button

Hallo,

I have a btf containing fragments of 4 in the order who are at the stage of the registration form.

Each fragment contained fields for the same instance of VO. the points of the fields is managed through the property Required for the APP.

Each fragment has a front and a "back" button to go to the next/previous step (buttonthe Action property is set to the name of the species of specific control flow).

In each fragment of the automatic validation - occurs when the user clicks the next button if the form is not well filled. It is very good.

The problem is that validation also occurs when the user clicks the back button: in this case the validation should not happen.

How can I achieve this?

Thank you

Federico

Have you attempted to immediately assign = true on the "back" button?

Dario

Tags: Java

Similar Questions

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • [ADF, JDev12.1.3] Opening SESSION: a session ID, HTTPSession, brought bean, UserData... where to store the information? (And other doubts...)

    Hallo,

    my simple application has this main stream job boundless...

    1)

    I see that when I call the login page of this URL http://127.0.0.1:7101 / MyApplication/faces/login, to which - in the address bar - it is auto-ajouté for example ' jsessionid = Wn2ymE_3cC2JXHYtG7_ocZDgMgonLyr376zejB-ui28UPlm5tiuB! 1535501325 ".

    So I guess that the session exists as soon as the user access the login page.

    • I would like to know if I have to worry about a possible previous session (especially another user session).
    • If the user on the home page click the back button in the browser the application creates a new session to destroy the possible previous session?
    • BdW, if my request to place the values in the HTTP session would be a good practice as part of the bean connection null all the attributes of the session?
    • And if my request to place the values in UserData would be a good practice as part of the bean connection null all the attributes of the container UserData?

    2)

    • Is it better to store the information in the HTTP session or UserData?
    • It is less safe than the other? Otherwise why is there the need to have 2 types of sessions?
    • Could he have no sense in storing an individual data in the HTTP session and UserData at the same time?
    • I have seen that the HTTP session is very easy to access, view and (if necessary) and the layers of the model. Is the same as for UserData, or it can be accessed only by the model layer?

    3)

    • In my case, I want to share my application the user in user data:
      • First and last name (only at the end of the display)
      • Name of the service (only at the end of the display)
      • Username and DepartmentId (these hairy should be passed to the query and the view of your criteria)
    • Where I put those values? Who, in the HTTP session? Who in UserData?

    4)

    • I'm in doubt if using a scope session bean or - since the data that I have to share is really little - use the 'basic' (e.g. ectx.getSessionMap () .put ("key", "ValueToStore")).
    • If I use an extended session bean and I store of simple values (integer, String,...) I don't have to worry about serialization (de)?
    • A scope session bean is accessible from the model layer as the HTTP session basis (what I can put by ectx.getSessionMap () .put ("Key", "ValueToStore"))?
    • And in my situation I could handle everything with a single between UserData anda HTTP session?

    These questions are intended to create a simple login system that stores data needed somewhere in the different parts of my application.

    So any advice is welcome!

    Thank you

    Federico

    1)

    I see that when I call the login page of this URL http://127.0.0.1:7101 / MyApplication/faces/login, to which - in the address bar - it is auto-ajouté for example ' jsessionid = Wn2ymE_3cC2JXHYtG7_ocZDgMgonLyr376zejB-ui28UPlm5tiuB! 1535501325 ".

    So I guess that the session exists as soon as the user access the login page.

    • I would like to know if I have to worry about a possible previous session (especially another user session).
    • If the user on the home page click the back button in the browser the application creates a new session to destroy the possible previous session?
    • BdW, if my request to place the values in the HTTP session would be a good practice as part of bean connection null all the attributes of the session?
    • And if my request to place the values in UserData would be a good practice as part of bean connection null all the attributes of the container UserData?

    -When you close your browser, this will destroy the session

    -None

    -It will be much easier to invalidate the entire session (HttpSession method for this object)

    -When you destroy the http session, it will destroy the Application modules, and it will destroy UserData

    2)

    • Is it better to store the information in the HTTP session or UserData?
    • It is less safe than the other? Otherwise why is there the need to have 2 types of sessions?
    • Could he have no sense in storing an individual data in the HTTP session and UserData at the same time?
    • I have seen that the HTTP session is very easy to access, view and (if necessary) and the layers of the model. Is the same as for UserData, or it can be accessed only by the model layer?

    -We already discussed in a previous thread so I won't comment

    -both are secure. HttpSession exist in java web applications and UserData is specific ADF.

    -Maybe (for example, it is not recommended to access the HttpSession of model project, so you can store some data in the UserData (to be referenced from your, etc.) and managed (so you can bind them directly to UI) Bean)

    -Are accessible only from template (but you can expose a custom to ViewController method that accesses UserData)

    3)

    • In my case, I want to share my application the user in user data:
      • First and last name (only at the end of the display)
      • Name of the service (only at the end of the display)
      • Username and DepartmentId (these hairy should be passed to the query and the view of your criteria)
    • Where I put those values? Who, in the HTTP session? Who in UserData?

    My opinion:

    Name, first name, name of the Department-> session brought average managed (so you can link that directly to the user interface components)

    UserId, DepartmentId-> UserData (or you can store managed bean and pass as parameters to methods of model project)

    4)

    • I'm in doubt if using a scope session bean or - since the data that I have to share is really little - use the 'basic' (e.g. ectx.getSessionMap () .put ("key", "ValueToStore")).
    • If I use an extended session bean and I store of simple values (integer, String,...) I don't have to worry about serialization (de)?
    • A scope session bean is accessible from the model layer as the HTTP session basis (I can put by ectx.getSessionMap () .put ("key", "ValueToStore"))?
    • And in my situation I could handle everything with a single between UserData anda HTTP session?

    -with getSessionMap () .put (), you must pay attention to the data types when you change or retrieve values (for example, do you know if DepartmentId is Integer, BigDecimal, oracle.jbo.domain.Number,..) If this isn't "type-safe". In addition, it is easier to understand what your application keep in session if you managed bean that in order to find all the places you're calling the method getSessionMap () .put ().  And controlled beans are a 'natural' way to keep data in a JSF/ADF application.

    -Not (just brand bean session with the Serializable attribute)

    -You can do something similar to this, but this is not a recommended practice because it would break the MVC pattern

    -If you do not have too much, you can keep everything in HttpSession and expose methods to set the binding vars.

    Dario

  • How can I get the classic report value when I click on the record?

    Hi all

    I have a simple classic report and I want to get the empno when I click on record. For example, when I click on record 1, and I'll go '7369', if I click on the 3 card, and I'll go '7521'. How can I do this? Please help, thanks!

    Hi jane.kuang,

    Jane.Kuang wrote:

    Thank you very much!!! Your message is useful for me. But this javascript has something wrong. When I click on the first time, the empno appears only once, but when I click on the other record, empno appear twice, and I click on the third time, it appears three times... I'm new to JS, I don't know how to fix it. Thank you!

    Use instead the dynamic action to that effect.

    Here are the steps:

    • Change your region classic report-> section 'Attributes'-> 'ID' static-> give an id say myempregion static
    • Create a dynamic action with the following attributes:

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector:

    #myempregion table.uReportStandard tbody tr
    

    Action: Run the JavaScript Code

    Code:

    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text();
    alert(empno);
    $('#P21_X').val(empno);
    

    Items concerned: keep it unselected

    • Change once created, your dynamic action-> go to section 'Advanced'-> set 'Extended event', 'dynamic'.

    This will fix the following in the code of the Para:

    • The jQuery Selector used by Para to trigger the click event is bad. This will fix the multiple alerts.
    • Para code won't work on loading the page, but if there are many rows in the table and pagination for the report is in place, and then when you paginate your report, it will not work. But it will work with dynamic action 'Scope of the event' the 'Dynamic' value even when you paginate the report.
    • Finally, most of the dynamic interactions page must be converted to dynamic actions, this will help the maintainability of the code, instead of stacking the javascript in your page.

    Kind regards

    Kiran

  • I can't find a way to sort the records themselves in alphabetical order by name. I speak not in a display mode, but in how they appear when I click on the tab my favorites. Can someone explain to me how to do this.

    I have a lot of issues of brand book with websites contained in each folder. I'm able to sort sites within each folder alphabetically by name, but I can't find a way to sort the records themselves in alphabetical order by name. I speak not in a display mode, but in how they appear when I click on the tab my favorites. Can someone explain to me how to do other than manually by dragging because it is extremely difficult for me, due to the fact that I am with limited movement tetraplegic hand dexterity

    Folders of bookmarks you created are in the folder Menu bookmarks. "Sort" this folder.

    http://KB.mozillazine.org/Sorting_bookmarks_alphabetically

  • My laptop suddenly stopped opening my Hotmail emails. I can connect to Hotmail and records are regularly updated with new emails, but nothing happens when I try to read an email.

    My laptop suddenly stopped opening my Hotmail emails.  I can connect to Hotmail and records are regularly updated with new emails, but nothing happens when I try to read an email.  The cursor will just highlight the particular word on what it is and do nothing.  As far as I know, nothing else was done on my computer.  This could be the cause?

    original title: cannot open emails.

    Hello

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

     

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

     

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • How do I enter recorded meetings? When I click on the "meetings" tab it says I don't have permission

    How do I enter recorded meetings? When I click on the "meetings" tab it says I don't have permission

    Meeting records will have a direct URL, as well as meeting rooms and the content in Connect. You probably not a member of the host of the meeting or Group Admin group in this Connect account, so you do not have the permissions to access the library of the meeting.

    You will need either the host of the meeting room as you are looking for the registration you get the link and make sure you have the appropriate permissions to view, or switch the recording to the content library where it can be placed in a folder that you have viewing permissions.

  • [ADF, JDev12.1.3] How to create a page that is read-only or allowing changes according to the menu by which item it is accessible?

    Hallo,

    I'd like to go to the page that contains an af:table of 2 different menus: "Edit/insert data" and "read data".

    Is it possible to make a page that is read-only when the user accesses by "Read data" and that allows for changes when you access it through 'edit/insert data?

    Or do I have to create 2 different pages?

    Thank you

    Federico

    If the menu is outside the region, you must pass a parameter in the area and read this parameter passed within the region. You cannot directly access the bean of expanded view of inside the workflow.

    You can check out my blog 11.1.1.5.0 JDeveloper: router to use to create new or modify existing line | JDev & ADF Goodies

    That uses a router within a workflow to decide which page to display based on the parameter. Using this solution you can easily implement your use case using two different pages to show the table, a read-only, and the other to change.

    Timo

  • Pop - up screen to record images does not appear when you connect the camera

    Original title: when I plug in my camera to download photos I don't have a pop up screen to ask me some questions were to save you more pictures. I want the pop up screen to come back.
    Guest USB? Download the pictures?

    Hello

    1. Are you referring to the AutoPlay window that appears when you connect a device to the computer?

    What is the number and the model of the camera?

    In case you are referring to the Auto play option then try the troubleshooting steps provided in the link below to fix the problem.

    Troubleshoot AutoPlay

    http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-AutoPlay-problems

  • My PDF does not save when I click SAVE AS opens a blank dialog box and it does not record.

    Anyone else has this problem and knows how to fix?

    Hi simonak10820071,

    Try this: -.

    The default "Save as" dialog Acrobat DC is different from the dialogue box you had in earlier versions of Acrobat, it also allows you to record in the clouds and previous locations that you saved the files. It is possible that when Acrobat tries to connect to the 'cloud', it runs into problems. You can try to disable this feature to see if this brings your backup in the back of the box: open Acrobat Preferences, then go to the "General" category and uncheck "show the online storage when you save files:

    Kind regards

    Nicos

  • Change specific line when you click the button on the table of the ADF

    We have a table column that contains 3 columns contain the adf (EDIT) button for each row.
    etc. click on Edit I want to change this specific line and ranks should be read only.

    Hello

    even if you use ADF you can work with the row index. You could use an af:clientAttribute and add context information to renderers of cell, which could also be the PK. Then, you use a setPropertyListener to define an attribute of scope memeory with the value of the button clicked (the index of the line or the PK ID line). During the re-rendering of the table, you will return a bean managed of the readOnly cell renderer property and make sure that the current line (#{line}) Pk is the same one that you saved on the button click. If so, you return true if the row in the table is editable

    Frank

  • Auto recording not happening when the value

    I am currently on Captivate 3.01.589. I have the following save set up in my template settings:

    Parameters: Record Type = manual recording (only sounds camera Hear and Move new windows inside recording area check boxes are checked)
    Complete movement: all of the checkboxes are disabled.
    Keys: stop = end, break = Pause, summary = F8; Manual recording = Print Screen (also tried Alt + 1), Full- Motion = F9 and Stop Motion = F10 (tried to change the F9 and F10, just in case).

    When I record, any key cancellation (tab, enter, etc.), the screen to record. Typing keystrokes are recorded. We want to save manually so that we can enter only the screens we want. This makes us crazy as it was not a problem in CP2.

    When I change the demo the problem Custom Mode worsens and every keystroke calls another page in the captivate.

    Of course, we can use comments as soon as POSSIBLE. We just discovered this and we are in a time crunch. I don't see this on the discussion Forum so I guess we are either wrong, or others are simply using the auto functions are registration. I don't remember if it was a problem before the last update, we have reason text bold in cause of legends.

    Thank you, Dianne Blake

    I received this response to the bug report. This is our response (I guess CP4):

    We are aware of this bug in Captivate 3 and it's NOT because of the update. Like manual type frequency is less compared to other modes, that this bug was not addressed in update and we have already corrected this in the next version we are currently working

    I'm really sorry that we cannot be of much help here, and the inconvenience caused in deeply regret. The new version would be available early next year.

  • How to open a pdf report when a click on a command button in the adf

    Hello


    I have to generate a pdf report or a PDF on click of a button. Could one please tell me how to achieve this.
    suggestion would be appreciated,


    Concerning
    Emine

    So what you say is the PDF already exists on your web server, and what you want to do is navigate in the browser of your ADF in the PDF application, Yes? If that is correct, we will assume that you have PDF exists to:

    http://www.acme.com/someCustomPath/myFantasticReport.PDF

    Look at the or , that include the destination attribute. Thus, you would do something like this:

    
    

    As you can see 'go' orders are for navigation to resources not inside your application of ADF, while the 'orders' are reserved for navigation within the resources in your application.

    In order to generate the destination URL, simply replace the attribute destination with an EL expression that retrieves the value of a bean to support:

    
    

    Kind regards

    CM.

  • Web ADF how to reach a view object when you click on a button

    Hi all

    I'm new to the web of the ADF
    My requirement is as follows:
    I have a page with a button print, I want when I press this button to go to a view object and specify a value in the database.

    I did a class for the managed bean and I put the following in it:

    {} public void calc (ActionEvent actionEvent)
    Add the code in the event here...
    TaskProjViewImpl t = new TaskProjViewImpl();
    t.Calculate ();
    }

    but according to me, it is not good to create an object like that, is it?
    What is the best thing to do my requirement?

    Help, please

    Your code does not work.
    Expose you the objects in view via request module (data model). It's a build data control that you use in the user interface.
    You give enough information on the use case, so all you want to do can be done without a bean.
    Open the data control build of the application module you an expand the node of the VO. You should see the method you are trying to call too in the bean. Drag onto the page and select the ADF button when asked what to create. That's all.
    This may not be exactly what you need but otherwise please describe your use cases in more detail.

    Timo

  • [ADF, JDev12.1.3] Best practices for maintaining a form validation

    Hallo,

    in my application, I need to create a registration form which contains fields that must be validated (for example they should follow a format like e-mail, phone number, tax code,...).

    If the data inserted by the user are ok, a new record in my custom db table Users will be created.

    I would like to know which are the best practices for maintaining the validation, which means the place where the controls must be made and a message to the user who fills out the form when something goes wrong.

    The best vo or EO or managed bean? Or some controls should be put in the OS, others in the VO and other in the managed bean?

    I would be happy if you could give me some examples.

    Thank you

    Federico

    Assuming you want the validation on the value of the field to any screen data can be entered in (and possibly web services that rely on the same BC ADF) then put the validation on the definition of the attribute in the EO.

    If you want to add a little more friendliness and eliminate some of the network traffic to the server, you can also implement the validation client in your page - for example by using the regular expression validator.

    https://blogs.Oracle.com/Shay/entry/regular_expression_validation

Maybe you are looking for