I’m using CDI (Weld) and I’ve faced a problem, hope you can help.
I have a series of Primefaces selectOneMenu, where the value selected in one is used to populate the next. Problem is, I need to use SessionScoped on my ManagedBean to get the values of the already selected items. I know that JSF has the ViewScoped that would help a lot in this case, but since I’m using CDI, this is not an option. Seam also isn’t a option. There is a workaround to use, for example, RequestScoped, or I really need to use SessionScoped on my bean?
Thanks!
Take a look at MyFaces CODI for their ViewScope or create your own CDI impl of ViewScope 🙂