Should JSF 2.0 Managed Beans be Serializable if always requested?

All my JSF 2.0 managed Beans are request scopes. Should I be worried about making them Serializable?

+3


source to share


3 answers


This is not required for RequestScoped beans. Conversely, if your beans are SessionScoped, you must make them Serializable.



+3


source


No, but for a probability of 0.001% the system will give them the same ID, which is better to make them Serializable.



0


source


If your bean is in request scope, there is no need to serialize your beans ..

However, if your bean is viewScoped, every need to serialize your bean ...

0


source







All Articles