This content has been marked as final.
Show 1 reply
-
1. Re: Using @RequestParameter in EntityHome
pmuir Apr 21, 2007 8:01 AM (in response to ryoung2504)The problem is that if you *don't* pass the id as a request parameter when you come to do the update, then the id will be null (@RequestParameter doesn't magically remember stuff ;).
If you are passing the id in when the EntityHome is created@RequestParamter Object id; protected Object createInstance() { if (id != null) { assignId(id); } return super.createInstance(); }