It depends on what you're trying to do. If you just want a common layout for all of your pages in your application, then I'd just use markup inheritance (and I do).
On Sun, Feb 22, 2009 at 6:49 AM, Sergey Didenko <sergey.dide...@gmail.com> wrote: > Hi, > > What are pros and cons of using "wicket:border + wicket:body" VS > "wicket:extend + wicket:child"? > > Is the first case just about avoiding wicket:xxx tags in "real" pages? > > Consider "java/org/apache/wicket/examples/navomatic" example, I omit > the related java code for brevity: > > NavomaticBorder.html: > > <wicket:border> > ... <wicket:body/> ... > </wicket:border> > > Page1.html: > > <span wicket:id = "navomaticBorder"> > ... > </span> > > > That can be rewritten as: > > BasePage.html: > > ... > <wicket:child/> > ... > > Page1.html: > <wicket:extend> > ... > </wicket:extend> > > Do I miss anything? > > Regards, Sergey. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org