On 12/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > your models shouldnt keep a reference to that object, they should know how > to retrieve it and do so when getobject() is called.
i.e. in your case: class MyFinanModel extends Model { public Object getObject(Component component) { return FinanSession.get().getMyFinanObject(); } public void setObject(Object object, Component component) { return FinanSession.get().setMyFinanObject(object); } } Martijn -- <a href="http://www.thebeststuffintheworld.com/vote_for/wicket">Vote</a> for <a href="http://www.thebeststuffintheworld.com/stuff/wicket">Wicket</a> at the <a href="http://www.thebeststuffintheworld.com/">Best Stuff in the World!</a> ------------------------------------------------------------------------- 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