Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

transient property gets "cached" when called from rich:tree  RSS feed

Aba Dov
Posts: 6
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In a class there is a transient Boolean variable named - tempVar

The problem is:
After the value of tempVar is changed to true by one request ,it seems to keep its value in the following request.

When debuging the new request, it gets to the init line, setting the variable to false, however afterwards, when it reaches the isOpenNodes method its value is true .

additional info:
The class is Serializable, has a "request" scope and has <a4j:keepAlive> in the jsf page.
The variable does not have getters or setters and is only modified by the one method.


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!