2 Replies Latest reply on May 26, 2009 5:41 PM by Tathagat Tathagat

    DataModelDefaultScopeEvent

    Tathagat Tathagat Newbie

      Hi All.


      accodrding to Seam Documentation, @DataModel is outjected in EVENT scope by default.


      I have a STATELESS bean defined as


      @Name("navigation")
      public class NavigationAction
              @DataModel List<Incident> dataList;
           
           public void home () {
                logger.debug("home");
                dataList = // do some thing here....
           }
           
           public void test () {
                logger.debug("test");
           }
      }



      I expect dataList to be available in EVENT scope. So when from page1 I click on the following link


      <h:commandLink value="Home" action="#{navigation.home}"/>



      I expect to see the data on the next page, page2. Being used as


      <rich:dataTable value="#{dataList}" var="data">



      But page2 is empty.


      Any idea why? Thanks in advance.


      Cheers