File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Aba Dov
Posts: 6
Eclipse IDE Java
  • 0
  • 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.


It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic