Demos and Usage of javax.faces.context.ExternalContext.getSession(boolean create)


   1: import javax.faces.component.UIViewRoot;
   2: import javax.faces.context.ExternalContext;
   3: import javax.faces.context.FacesContext;
   4:         ...
   5: 
   6:         ExternalContext externalContext = facesContext.getExternalContext();
   7: 
   8:         ...
   9:         ExternalContext externalContext = facescontext.getExternalContext();
  10:         Object sessionObj = externalContext.getSession(true);
  11:         {

View Full Code Here