Non-detachable models probably are not the best way to work with a database. And since they can't be detached, your whole model stays in the session the whole time, while the detachable ones shrink to a few bytes (object header + id + transient slot) when they are detached by Wicket after each request.
ZedroS Schwart wrote: > > Thanks Jonathan for the tip. > > I've now read on the wiki about it and this detachable compound > property model seems the best way to do (or even the Detachable > BoundCompoundPropertyModel !) . > > I've just a question (a newbe one as usual lol) : how does wicket work > with non detachable models ? They're kept during the whole user > session even if they're updated every time there is a new access to > the page to whom they're linked ? > > Thanks again > ZedroiS > > > On 3/17/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> you don't have to choose. you can wrap a compoundpropertymodel around a >> detachablemodel and get both access convenience and detachability. >> wicket >> models are much more flexible and powerful than most people realize at >> first. >> >> >> ZedroS Schwart wrote: >> > >> > Thanks for your comment Igor, I really appreciate. >> > >> > Just some questions : do you use CompoundPropertyModel or the >> detachable >> > one ? >> > >> > For the form beans, the user profile page I'm working on really proves >> > you right. I was willing at first to avoid "yet another bean" but in >> > fact it seems indeed to be the easiest way. >> > >> > For the optimistic locking, I've read >> > >> http://www.hibernate.org/hib_docs/reference/en/html/transactions.html#transactions-optimistic >> > Is it what you had in mind ? >> > >> > Thanks again >> > >> > ZedroS >> > >> > >> ------------------------------------------------------------------------- >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to share >> > your >> > opinions on IT & business topics through brief surveys-and earn cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> > _______________________________________________ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Re%3A-Hibernate-Spring-and-Wicket-architecture-%22request-for-validation%22-%28was-Wicket%27s-questions%29-tf3405475.html#a9526281 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Re%3A-Hibernate-Spring-and-Wicket-architecture-%22request-for-validation%22-%28was-Wicket%27s-questions%29-tf3405475.html#a9529946 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user