Good thought. On creating "EmptyPanel" - just use WebMarkupContainer. It's made for that.
-- Jeremy Thomerson http://www.wickettraining.com On Fri, Oct 16, 2009 at 4:23 AM, Jonas <[email protected]> wrote: > Hi there, > > a quick question regarding org.apache.wicket.markup.html.panel.Panel: > we recently had a bug in our software because someone directly created > an instance of Panel to render 'nothing'. This of course failed miserably > because the associated markup for Panel couldn't be found. While > the fix was easy (use EmptyPanel, which has default markup, instead), I > still wonder if there's any situation where it would be correct to directly > instantiate Panel. If there isn't any such situation, I guess it would > make sense to declare Panel to be an abstract class. > ...or did I miss something here? > > thanks. > > cheers, > Jonas >
