5 Replies Latest reply on Jun 19, 2009 5:48 AM by Nick Belaevski

    keepAlive issue

    mustafa karatas Newbie

      Hi guys,

      I have problem with keepAlive component. As being said on developers guide it can be used to keep request bean as if it is in session bean(or something like that).

      My problem is that, when I add <a4j:keepAlive beanName="mybeanname" /> in any place on my page I dont realize any change in page state. It behaves as if I dont use keepAlive component and allways enter the constructor of the bean.

      But when I use keepAlive as annotation it keeps my bean's state and seems to never release it during session.

      what is different between annotation and page usage of this component? in case of using annotation, how long does the annotated bean live? Is it safer to use annotation version of this component?

      thanks in advance