Since I seem to be having this conversation with myself, I thought I'd post the
solution so I would know what I did wrong. When I used seamgen to generate the
entities seam generate-entities It did not properly add the @GeneratedValue
annotation to the entity class for the autoincrement field i
In the struts world, I've dealt with this by getting the ID after update and
explicitly updating my model with the id after the DB update. This is usually
done in the struts action class.
Is there a similar metaphor for doing this in seam? Do I need to have a
stateless session bean that updates
These are seamgen generated variable and class names, based on the tables that
are backed by the EJB3 entity beans. If the names of the variables are wrong,
its because they were generated incorrectly. I don't think that is the case.
Can someone point me to a request/response cycle for SEAM?
I am not good at this either, but i see at one point you call it statusId and
the other one you just call it id , is this a typo?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092825#4092825
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=p
It seems as if persisting the entity is not tied to the correct instance?
My page navigation all look as follows:
|
|
|
The value that is tied to the HTML for, (therefor the value that I would
believe to be forwarded as a parameter after the persist method is:
|
|