2 Replies Latest reply on Jan 28, 2011 4:42 AM by omid pourhadi

    getPreviousInstance() from EntityHome

    omid pourhadi Apprentice

      Hi,
      i created a component bean extends EnittyHome when i update an entity
      i want to getPreviousInstance before update without hit the database
      how can i achieve this ?


      when i click on edit link wire method return the instance that i want to, however i could not preserve it until update is it good idea to hold it into pageContext ?




      getPageContext.set("prevInstance",getInstance());