sorry, i'll fix this today.
Johan Compagner wrote:
Hi,
Now with the new changes i suddenly get problems like this:
Caused by: java.lang.IllegalStateException: No Page found for component [path = userForm, children = {phone=[path = userForm.phone], ccrmid=[path = userForm.ccrmid], domain=[path = userForm.domain], username=[path = userForm.username], email=[path = userForm.email], fullname=[path = userForm.fullname]}]
at wicket.Component.getPage(Component.java:452)
at wicket.Component.getSession(Component.java:646)
at wicket.Component.getModel(Component.java:339)
Because a getModel call is done in the constructor of the component (or sub componet) so it doesn't have a page at that time and therefor no session...
So with the current setup you can never have a getModel call anywhere when constructing the objects..
I think we can get rid of that Session parameter (or RequestCycle) all together for the attach and deatach methods.
Anybody object? Or are really using that parameter in the method itself?
johan
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
