I am writing simple web application for managing data in a few tables. In JSF I can make SessionScoped
bean to store data across several user requests. But using many SessionScoped
beans isn't good idea, I think. I want to implement PHP-like behavior (user inputs data, click "save" and data posts to the server-side function) for all tables. What is the better way to do it?
Should I use one big SessionScoped
bean for all tables? (I think, no)
Should I use separate beans for each table? (I think, it's the good choice). But what's the bean scope should I use for proper design?
Is the better way to implement such application - is use RequestScoped
beans with ajax?
I just can't understand this moment in the JSF. I read books, but answer still unanswered.