3 Replies Latest reply on Mar 27, 2007 2:55 AM by Andreas Franke

    Session wide variable

    Andreas Franke Apprentice


      what can I do to maintain a session wide variable?

      I have a class Site with a variable currentSite.
      At startup this currentSite should store the startpage i.e. main.xhtml
      In other classes I should set this variable to the next displayed page.

      to change the sites this is the section where is reRendered on an action to change the currentSite

      <h:panelGroup id="center">
       <a4j:outputPanel id="first">
       <a4j:include viewId="#{site.currentSite}" />

      I have tried some experiments with static field etc. but without success.

      Please can help me someone!!!