On Sat, Nov 26, 2011 at 4:37 PM, Stan. <[email protected]> wrote: > Hallo, please advice. > I have BasePage, Page1 and Page2. Page2 extends Page1, Page1 extends > BasePage. When is Page1 opened, his markup is placed into BasePage instead > <wicket:child/>. But doesn't work identically for Page2. How can I do this? > Thanks. >
BasePage.html: <body> blah, blah <wicket:child /> </body> Page1.html (extends BasePage) <body> <wicket:extend> this is page 1 <wicket:child /> </wicket:extend> some other markup </body> Page2.html (extends Page1) <body> <wicket:extend> this is page 2 </wicket:extend> some other markup </body> Now.... Viewing Page1 gives you: <body> blah, blah this is page 1 </body> Viewing Page2 gives you: <body> blah, blah this is page 1 this is page 2 </body> Is that what you wanted? -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
