On 6/26/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
On Tue, 26 Jun 2007, Igor Vaynberg wrote:
> interface IModelListener { onSet(IModel model) }
>
> class ModelMonitor implements IModel {
> private final IModel delegate;
> private List<IModelListener> listeners;
...
That's an interesting approach. Is it OK to keep references
to Component instances like that? We've thought that it
would be safer to always get the components dynamically, so
that you wouldn't get the danger of stale references.
- Timo
I dont think there is an issue. You have to check if components are still on
page in either case - whether they are there directly or you only keep their
path.
getpage.get(path); vs component.findparent(page.class)
-igor
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user