[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
}
Niciun comentariu :
Trimiteți un comentariu