3 Replies Latest reply on Jan 10, 2008 10:55 AM by Cle' Diggins

    ID becoming null when trying to save entity.

    Cle' Diggins Newbie

      I have been having difficulty getting an entity record to update data. I am using a @Factory menthod to load an @DataModel list, and the selecting a record using @DataModelSelection. Once this data is loaded I can see on the page (outputText) that I have the proper ID from the database. If I then click Save on the page and have a breakpoint on the first line of my save method, I find that the ID of the entity is now null.

      Bean code: http://pastebin.com/m64bc46af
      Entity code: http://pastebin.com/m72d5f618
      List xhtml code: http://pastebin.com/mfd2394e
      Edit screen xhtml code: http://pastebin.com/md1f99e3

      If anyone has any idea what could be done to prevent the ID from becoming null, I would appreciate it.