it\'s my first question here and I hope that I\'m doing it right.
I need to work on a Java EE project, so, before starting, I\'m trying to do something simple and se
You need to define the bean with @SessionScoped instead of @RequestScoped (if you are looking for HttpSession equivalent solution)
something like
@SessionScoped
public class SessionInfo implements Serializable{
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Have a look at following (explained in detail)
http://www.oracle.com/technetwork/articles/java/cdi-javaee-bien-225152.html