Menu

#25 setModel is not revalidating model

open
nobody
5
2004-05-23
2004-05-23
Anonymous
No

I'm not sure, but it could be a bug.

In scope 2 alpha we initialize the controllers, models
and views at creation time. Thus the whole triad was
touched by scope (via setModelAndView and addChild).
But if we actualize data in a model and call setModel the
view will not be refreshed.

I think refresh will only be done if the references of the
new and old model are not the same. But I think it would
be proper if oldModel.equals(newModel) would be used
instead. Thus i could control equalness in my own
sources.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.