0 Replies Latest reply on Dec 6, 2007 12:09 PM by Jing Fu

    Ajax4JSF portlet can't fetch backing bean from session scope

    Jing Fu Newbie

      Seems when I put the backing bean in request scope, ajax4jsf wroks as expected. But when I put backing bean in session scope, ajax4jsf can't fetch backing bean. The <a4j:log> doesn't show anything. My environment: Liferay portal 4.3, JSF 1.2_04(SUn RI), facelets 1.1.12, portlet-3.1.0-SNAPSHOT.jar, Richfaces 3.1.2SP.
      Below is my section of facelets code snippet:

      <h:form>
      <h:inputText value="#{testAjaxBean.ajaxLableTest}">
      <a4j:support event="onkeyup" reRender="outtext" ajaxSingle="true"/>
      </h:inputText>
      <a4j:outputPanel ajaxRendered="true">
      <h:outputText id="outtext" value="#{testAjaxBean.ajaxLableTest}" />
      </a4j:outputPanel>
      </h:form>

      Below is my section of "faces-config.xml"

      <managed-bean>
      <managed-bean-name>testAjaxBean</managed-bean-name>
      <managed-bean-class>org.richfaces.demo.TestAjaxBean</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>