1 Reply Latest reply on Dec 9, 2008 6:17 AM by nbelaevski

    Access keepAlive bean from servlet

    rwong4000

      Is it possible to access a bean marked as keepAlive from a regular servlet and if so how is it done?
      A javascript component on my page makes ajax calls to a servlet I created.

        • 1. Re: Access keepAlive bean from servlet
          nbelaevski

          Hello,

          It's possible only in the case when your servlet is invoked after VIEW_RESTORE phase of JSF lifecycle has been run. See org.ajax4jsf.application.AjaxStateManager#restoreAdditionalState(FacesContext, Object) for more information.