unfortunately, that's not open source.
in general, the structure of your panel factory(ies) probably depends on your application. one simple possibility is to make a factory that associates a panel class for a given model type. then just newPanel(id, model). so this simple case works only for POJO model panels. if you are trying to create links from some kind of LinkModel of your own devising, this might work. i'm sure it's possible to create something more general, of course. jwcarman wrote: > > On 3/14/08, Jonathan Locke <[EMAIL PROTECTED]> wrote: >> >> >> you could do it that way. another way to do it would be to create a >> link >> panel. you could then subclass and decorate the panel in various ways. >> >> i do it this way so i can leverage my application with panel factories. >> this can be quite powerful: i simply override a factory method or >> install a >> new factory and all of a sudden every link on the site can have a new >> look >> or even new behavior. >> > > Mr. Locke, > > Would you mind sharing a snippet of code that would give us an (or at > least me :) idea of what you mean? > > James > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/A-link-o-label-needed-tp16052333p16063017.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]
