java - Request attributes in jsf / icefaces behaves strange (survive request end) -


i have following code in listener method:

facescontext.getcurrentinstance().getexternalcontext().getrequestmap().put("time", new date()); 

when button clicked following code executed

system.out.println(facescontext.getcurrentinstance().getexternalcontext().getrequestmap().get("time")); 

one except "time" null when listener not executed while processing current request, but: seems "time" object survives request processing. when "time" has been set in past stays there... can explain this? thanks.

found answer here: http://wiki.icefaces.org/display/ice/compatibility scopes

by default, icefaces 1.x operated under referred extended request scope. in nutshell, extended request scope refers behaviour new request associated change in view. means ajax requests occur within existing view not treated icefaces new requests. request not considered new request unless results in new view request-scoped beans not recreated until new view created. behaviour configurable allow more standard definition of request scope considered necessary @ time because existing standard scopes (request, session, application, none) not granular enough.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -