Re: Dynamic tab question - now to pass a model to the panel?

2011-02-01 Thread msj121
I don't quite understand the problem... some code might help. But why can't you do something like the following: tabs.add(new AbstractTab(item.getModel()) { public Panel getPanel(String panelId) { return new AlbumPanel(panelId, );// can be item.getModelObject() or something }

Re: Dynamic tab question - now to pass a model to the panel?

2011-02-01 Thread nimmy
Hi, Thanks for your reply. I'm pretty much doing what you suggested but have a concrete Tab class as it is reused on another page: public class AlbumTab extends AbstractTab { private static final long serialVersionUID = 1L; private IModelAlbum model; public

Re: Dynamic tab question - now to pass a model to the panel?

2011-02-01 Thread msj121
the method .detach() or some variation should be called on every Loadable Detachable Model (LDM) if your model is being used as a default model to any component in the page hierarchy. To make this LDM your page model, I think there is a trick in the sense you should call super(model), and not