I am trying to get scope bean data with sessions in another managed bean. When I make this value, it comes as null and gives a java.lang.NullPointerException error. I am new to JSF, so keep in mind that I can skip the simple thing.
Here is a SessionScoped Bean
@ManagedBean @SessionScoped public class UserSessionBean { private superProcessId;
Here is a managed bean I'm trying to get this data
@ManagedBean public class AddProcessBean { @ManagedProperty(value="#{UserSessionBean}") private UserSessionBean sessionData;
Sxv
source share