When you don't use the model, it is not used. A panel doesn't do
anything by itself.
When you add a label, the model is needed to render the label value,
so it will retrieve the data, and hence use the load() method.
Martijn
On Tue, May 20, 2008 at 5:19 PM, msmall <[EMAIL PROTECTED]> wrote:
>
> I have a panel that has a LoadableDetachableModel as its model (i.e. I'm
> calling this.setModel(new LoadableDetachableModel() { ... }) in the
> constructor of my panel, but this load method of the model is never invoked.
> If I use that model in another component, such as a Label, it works
> correctly. Do panels not support detachable models?
> --
> View this message in context:
> http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]