I'm not sure I understand you but you load the collections separately?
Can't you just do something like this?

class MyPage extends Page {
  public MyPage() {
    IModel m1 = new LoadableDetachableModel() {
      Object load() {
         return [load collection 1];
      }
    }
    add(new ListView("l1", m1) {
      ...
    });

    IModel m2 = new LoadableDetachableModel() {
      Object load() {
         return [load collection 2];
      }
    }
    add(new ListView("l2", m2) {
      ...
    });

  }
}

Matej

Vincent Jenks wrote:
I've got a page where I need to call data from the EntityManger (EJB3)
several times in a single page....which means I'd need to have several
detached-models in the page.

Once I put these objects and/or collections of objects into a
detachable model, what's the best way to cast them back out to their
original types?

It seems like a silly question but I'm having trouble w/ it.  If I
only had one detached model I realize I could use setModel(...) and
grab it w/ getModelObject() - but I've got 3-4 collections and they
can't all be the page model, can they?

Thanks!


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to