I have started developing JSF(2.2 + primefaces 6.0) application and my requirement here is that i have search page from starting point, and when I've found user I need to manipulate with only that account. So It's like administrative application. My question how I need to organize my scopes, what Is the best practices for such case?
What I have now:
- Working search page, where I got needed id of account.
- A link from datatable, that opens a new page with GET parameter (accountId).
So now I wonder what scope should I use for working with account page? This working page will have links to manipulating options to another pages and will be like administrative big menu. Will it be right to use PageFlow? Can I use CDI ConversationScope? Or I just need SessionScope for that? And now, when managed beans will be deprecated i want to use only CDI beans.
I need to monitor which user is working with particular account and should save administrativeUserId for each invoked operation on account. And i need to save an accountId while working with that account despite having to open different options which means different pages.
Thanks in advance!