I'm trying to update my database using
jsf. When someone selects something on my page the info is displayed of that something. On that page the user then can change
some of the values with a h:inputfield. Then I want to update those changes to the database. My problem is: when the user select the something a bean is created with every info from the database including the primary key. Then I display
some of the items but not the primary key of course, because I don't want the user to change it. When the user clicks save a new bean is created (because I want all of my beans to be request scoped) with all the new items but the primary key is never set! Does anyone know how I can set the primary key in my bean without the need of putting a h:inputfield on my jsf page? I'm using jsf 1.2 if it makes any difference...
thanks in advance.
edit: When I am using the bean as a session scoped one, the first time someone tries to update the values it doesn't work but the 2nd time it does.