Hi,

With page inheritance you can add the child's markup at only one place
in the parent's markup, i.e. you can have at most one <wicket:child/>.
For your case you need to use composition with Panels

On Sun, Nov 27, 2011 at 11:15 AM, Stan. <[email protected]> wrote:
> My case isn't so simple. I need all component from Page1 when i render Page2,
> but components from Page2 should be placed in various places. Simple
> example:
>
> Viewing Page1 gives:
> <body>
>  blah, blah
>  this is first component from page 1
>  this is second component from page 1
> </body>
>
> Viewing Page2 gives:
> <body>
>  blah, blah
>  this is first component from page 2
>  this is first component from page 1
>  this is second component from page 2
>  this is second component from page 1
>  this is third component from page 2
> </body>
>
> By reason of above I suppose to I need completely new markup for Page2. But
> I don't now, how put it into <wicket:child /> in BasePage.
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Howto-override-markup-tp4111284p4112085.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to