-
15. Re: Error during model data update
jason_rency Jul 24, 2006 9:19 AM (in response to jason_rency)thanks for the article.
Indeed, I don't have a create = true or new User().
but the problem was still there when I added the create = true or new User() in the registerActon.java
actually, in the booking example I haven't see create= true or new user() in registerAction.java -
16. Re: Error during model data update
pmuir Jul 24, 2006 9:24 AM (in response to jason_rency)You seem to be missing @Out on user as well - or are there other beans involved that outject user?
-
17. Re: Error during model data update
jason_rency Jul 24, 2006 9:35 AM (in response to jason_rency)yes,
the loginAction bean will outject user (@In @Out)but not in the registeraction bean. -
18. Re: Error during model data update
jason_rency Jul 24, 2006 11:04 AM (in response to jason_rency)i am really stuck here...
any suggestion wuld be highly appreciated! -
19. Re: Error during model data update
pmuir Jul 26, 2006 9:22 AM (in response to jason_rency)You could turn up JSF logging which might give you clue (configured from JBoss/server/default I think). You could look at the MyFaces code, find out what exception is causing the ModelUpdate error to be displayed and break at it. You could put a breakpoint at the method that does ModelUpdate in myfaces and see where it goes wrong (I can't remember the exact method names, I don't have MyFaces sources in fron of me).
-
20. Re: Error during model data update
kryptontri Jul 26, 2006 9:43 AM (in response to jason_rency)Doesn't your session bean need
@In
private String PIN;
@In
private String verify;
aswell ? -
21. Re: Error during model data update
jason_rency Jul 26, 2006 10:15 AM (in response to jason_rency)don't think so,
because the verify is the one defined by the booking example, there is no annotation. I added PIN to the session bean as well as the register page (just upon verify). in this situation I can still get verrify properly, but PIN with error during model data update.
PIN and verify should be the same.
so I suspect there is somthing I didn't notice for verify. -
22. Re: Error during model data update
jason_rency Jul 26, 2006 11:27 AM (in response to jason_rency)finally I found the problem...
I changed the property name from PIN to pin...then it works.
I found that seam (or JSF/facelets) is quite sensitive to the property /method(setter,getter) name...
when begins with uppercase.. it just doesn't work...
is this true? -
23. Re: Error during model data update
d.bolesta May 14, 2007 7:44 PM (in response to jason_rency)I had the same problem when starting demo, but got solved in simple way.
The origin was wrong deployment done with "ant deploy". The file "build.properties" in my seam installation (ex. /opt/jboss-seam/build.properties) had wrong value of "jboss.home". It run fine after checked.