2 Replies Latest reply on Jan 30, 2007 11:55 PM by Tony Herstell

    Injecting two instances of an Entity

    Tony Herstell Master

      I want to Inject two instance of the User entity into a controller:

      public class User implements Serializable {

       private User user;
       private User userSearchCriteria;


      "user" is the user being manipulated
      "userSearchCriteria" is the User that holds (and is filled in) for search criteria.

      If I go with:
       private User user;
       private User userSearchCriteria = new User();

      then when I come back to this controller (using the back button or whatever) then the userSearchCriteria is pointing to the "user" being manipulated.

      Any suggestions?