0 Replies Latest reply on Nov 24, 2006 5:03 AM by Pascal Lochmann

    Portlet access to beans

    Pascal Lochmann Newbie


      i have an JBoss Portal Server running with my written JSF-Portlets. I want to write from my JSFPortlet (which extends "MyFacesGenericPortlet") a String got from the Session to my managed-bean, which is displayed in an JSF-Page.

      Code from JSFPortlet.java

      public void doView(RenderRequest rRequest, RenderResponse rResponse) {
      String s = (String) rRequest.getPortletSession(true).getAttribute("id", PortletSession.APPLICATION_SCOPE);
      /* write s in StatusBean-Property */

      Code from faces-config.xml
       <managed-bean-name> StatusBean </managed-bean-name>
       <managed-bean-class> StatusBean </managed-bean-class>
       <managed-bean-scope> session </managed-bean-scope>

      Thanks for help.