0
I have 3 pages and they are responsible for fetching objects in my databases based on the first page selection filter.
My website is about car ads and has the following structure:
1st page: Responsible for user selection filter.
2nd page: This is the datatable page with the first page filter results.
3rd page: It is related to the car details
I used @SessionScoped
in my project to be able to do what I want and "got" that way, but the problem is that when I’m on the third, fourth, fifth page of the datatable
, by clicking on a row of ad details and returning to the page of datatable
, instead of it returns to the page I was on, it returns to the first no matter where it is. It always returns to the first page...
Because of that, I tried to change my bean
to use @ViewScoped
. I thought it would solve my problem, but when I return from the third page of the site to the second, the datatable
loses filter data(as @ViewScoped
).
I’ve been using the context Lazyload
, but I guess it doesn’t matter to the case.
My need is for the user to be able to click on an ad and if he wants to get back to exactly the page he was on, he can.