Posted By

mugafuga on 04/17/08


session jsf faces httpsession

Versions (?)

PageCodeBase getSession method instead of sessionMap

 / Published in: Java

Who cares about manipulating Maps when you can just use the HttpSession object instead right inside your page code backing bean. Who woulda thunk people would like that better. Just add this to your class

  1. public HttpSession getSession()
  2. {
  3. return (HttpSession) getFacesContext().getExternalContext().getSession(false);
  4. }

Report this snippet  

You need to login to post a comment.