As we all know, when we render a component of the JSF web application, we will lose property value. We have two solutions:
- Set the ManagedBean type Session in face-config.xml
Set property Of Managed Bean static type. E.x:
Public static String txtName Ex.
I want to find a way not used the second way (so many they will only web browser access to a single static variable) and not to use a SessionBean like the 1st way.
Is there any solution to solve this problem?