• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

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

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.

code:








Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic