0 Replies Latest reply on Oct 29, 2007 3:19 AM by panky_p

    session refresh

    panky_p Novice

      I am trying to add a page in my demo application for that my bean contains

      public class MyPage implements Serializable {
      @Id @GeneratedValue
      private Integer pageId;

      public class PageAction implements PageManager {
      private MyPage myPage;
      private EntityManager em;

      and to add page i am using
      public String add(MyPage myPage) {
      try {
      }catch (Exception ex){ }

      When I try to add first page it works fine but when I try to add another page It gives error because of session object it brings old pageId and not the new one I also tried it by making @Stateless but still it wont work, but I need the session should remain and pageId should be new.
      Is it possible??
      Any hints???