whatever component is the "superDiv" has to have
gettransparentresolver() overridden to return true

-igor

On Tue, Oct 6, 2009 at 2:20 PM, Jens Zastrow <[email protected]> wrote:
> Hi experts,
>
> I have a Page class with serves as base html-template for the derived pages.
> (e.g. http://www.javalobby.org/java/forums/t69357.html)
> For some special needs, subclass-markup should be placed in some element
> managed by wicket and not at the root.
>
> base.html
> <body>
> <div wicket:id="superDiv">
>  <wicket:child/>
> </div>
> </body>
>
> My workaround currently is, that the Base-class provides a getSuperDiv()
> method, wich must be used from
> the subpages to add their content to.
>
> SubPage(String) {
>   super(...);
>
>   // NOW, wrong: add( new Label("hello","Hello"));
>
>   // CORRECT
>   getSuperDiv().add( new Label("hello","Hello"));
> }
>
> Anybody, knows some more clean solution to this?
> Maybe the root-Container for the subpages can be set somehow.
>
> Thanks
> Jens
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

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

Reply via email to