Got it!!
The problem was in the LinksPanel:
In the constructor I got the Model and did this:
final List<LinkContainer> links = new ArrayList<LinkContainer>();
List<String> linksIds = (List<String>) linksIdsModel.getObject();
for (String linkId : linksIds) {
links.add(portalStructureManager.getLinkById(linkId));
}
init(links);
In init I created the ListView with an AbstractReadOnlyModel.
Instead, the fix is that the original model is THE SAME that is passed to
the list view.
Now, like magic, it works.
The only thing I need to do now (which is an application logic issue) is
casting the models.
It's not a Wicket issue anymore.
Thanks,
Eyal
On Mon, Jun 23, 2008 at 5:53 PM, Martin Makundi <
[EMAIL PROTECTED]> wrote:
> > So the problem is: how can I tell my Model (detachable) that there was
> > change in the database?
>
> Ok. I haven't worked with detachable models, but I would guess you
> just detach it so that it has to re-initialize itself?
>
> **
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Eyal Golan
[EMAIL PROTECTED]
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74