[OmniFaces utilities] The
hasSession() method returns whether the HTTP session has already been created.Method:
See also: Faces#getContext() | Faces#getSession()
Usage:
import
org.omnifaces.util.Faces;
...
boolean
hassession = Faces.hasSession();
if(hassession){
// do
something
} else {
// do something else
}







JSF 2 Tutorials at www.mkyong.com
JavaServer Faces (JSF) Tutorial 

















Niciun comentariu :
Trimiteți un comentariu