Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Iterators not cleared on reLogin

managed BEANJun 5 2015 — edited Jun 11 2015

Hello everyone,

I have a problem in clearing the data from the iterator.

In a JSPX page i have two iterators, one as ADF form for search(searchVO1) and other as ADF read only table to display the results(resultsVO1).

When i click "search" button and no data is in the input text boxes of the form, the table is populated with all clients from DB.

When i click "search" button and there is some data is in the input text boxes of the form, the table is populated with clients from DB filtered by the criteria written on the input text boxes of the form.

If i select any client from the table, the search form is fully filled with the data of that client.

The problem is when i logout twice and relogin, i click search and it shows me the client of my first login (not the last) when it should be empty to show all.

And if i logout again (the 3rd time) and login (the 4th time) it shows the client i selected on the second login, and starts this spiral efect on the subsequent logins.

I´ve put: clear cache, execute empty row set, etc methods in the flow before enter the page and after exit the page, but nothing works.

Perhaps because i´m new in ADF that´s why this is happening...

My logout code is:

public void doLogout(ActionEvent event) throws IOException {
  
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ectx = fc.getExternalContext();
    HttpSession session = (HttpSession)ectx.getSession(false);
    try {
        session.invalidate();
        ectx.redirect("../Login");
        fc.responseComplete();
    } catch (Exception exp) {
        ectx.redirect("../Login");
        fc.responseComplete();
    }
    it_user.setValue("");
    it_password.setValue("");
    this.setScopeUserName(null);
    this.setScopeUserNumber("0");
    this.setOutcome(null);

}

My jdev is 11.1.1.7.1

Tks

Carlos

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 9 2015
Added on Jun 5 2015
8 comments
1,057 views