Request attributes in jsf / icefaces behaves strange (survive request end)
Posted
by hubertg
on Stack Overflow
See other posts from Stack Overflow
or by hubertg
Published on 2010-04-27T07:53:57Z
Indexed on
2010/04/27
8:43 UTC
Read the original article
Hit count: 279
I have the following code in a listener method:
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("time", new Date());
When a button is clicked the following code is executed
System.out.println(FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get("time"));
One could except that "time" is null when the listener was not executed while processing the current request, but: it seems like the "time" object survives the request processing. So when "time" has been set sometimes in the past it stays there... can anybody explain this? Thanks.
© Stack Overflow or respective owner