0 Replies Latest reply on Apr 15, 2008 8:31 AM by Alexander Mashtakov

    ScopeType.PAGE question

    Alexander Mashtakov Newbie

      Hi All,

      I need some explanations about the page context. I developed
      a simple component with ScopeType.PAGE (jsf backing bean)
      with methods annotated as @Create and @Destroy/@Remove and noticed that @Destroy/@Remove method is never called.

      Could anyone explain me the lifecycle of such components ?
      The creation process is quite clear - the component
      is instantiated on first RENDER RESPONSE and keeps its state
      during subsequent postbacks to that page. But I couldn't figured out when they are destroyed.

      I found page context as a lightweight alternative to
      session and conversational scope which IMO can be used for simple editors in order to cache lists. I would appreciate
      any feedback on such usage of page scoped beans.