Detach /is/ called automatically for all models that are set on components. In other words, at the end of a request, we visit all components, and ask each component to detach their model. However, models that dont have /attachable/ behaviour, do nothing on detaching; it's just a no-op for them.
The sharing is all up to you. There is a pattern that tries to look up parent models in case you didn't provide one yourself. It's documented on the Wiki, and is used by CompoundPropertyModels. Eelco On 8/24/05, Anders Peterson <[EMAIL PROTECTED]> wrote: > When/where/how are models shared between sessions or application instances? > > When should I call detach rather than just dumping the model? > > I trust detach is never called automagically. > > /Anders > -- > http://ojalgo.org/ > > Mathematics, Linear Algebra and Optimisation with Java > > Christian Essl wrote: > > As Igor has pointed out IModels are sometimes more like model-locators > > and not what ie a Swing user would expect from a model. > > > > To explain more explicitly what an IModel is I've added a paragraph to > > http://wicket.sourceforge.net/wiki/index.php/Models. > > > > Maybe someone is intrested and can read/edit it. > > > > Christian > > > > > > > > > > > > > > ___________________________________________________________ Gesendet von > > Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: > > http://mail.yahoo.de > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
