[jboss-user] [JBoss Seam] - Re: Using @RequestParameter in EntityHome
petemuir
do-not-reply at jboss.com
Sat Apr 21 08:01:04 EDT 2007
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();
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039527#4039527
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039527
More information about the jboss-user
mailing list