For that approach, you can use panels. You can nest them as deep as
you like. Wicket id's will never clash unless they are siblings.
For a good example (at least imo) of markup inheritance, see the
template example in wicket-examples.
Eelco
On 9/30/05, Chris Mok <[EMAIL PROTECTED]> wrote:
> While reading the Wiki on Markup Inheritance, I feel that the example
> there is not practical. The problem is that Child is a subclass of
> Parent. In my opinion, it would make much more sense if the classes use
> composite pattern instead of inheritance:
>
> public class Parent extends Webpage
> {
> public Parent()
> {
> add(new Child1()); // works?
> add(new Child2()); // works?
> }
> }
>
> public class Child1 extends Webpage { ... }
>
> public class Child2 extends Webpage { ... }
>
>
> The question is, does the framework support nested Webpages or
> MarkupContainers? If so, how does it handle wicket:id clashes?
>
> Chris
>
>
>
> ---
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, re-transmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender immediately by return electronic
> transmission and then immediately delete this transmission, including all
> attachments, without copying, distributing or disclosing same. E-mail is not
> a secure means of communication. Please advise us if you would prefer to use
> an alternate form of communication. This e-mail is not intended to be
> considered nor shall it be considered as constituting any legal, contractual
> or other similar kind of relationship.
> We accept no responsibility or liability for loss or damage arising from the
> receipt or use of this transmission. Unless otherwise specifically stated,
> any opinions expressed are those of the author only and this transmission is
> not intended as a recommendation or solicitation of an offer to purchase or
> sell any security or related financial instruments. The SCOTIA CAPITAL
> trademark is used in association with the corporate and investment banking
> businesses of The Bank of Nova Scotia and some of its subsidiaries, including
> Scotiabank Europe plc; Scotia Capital Inc.("SCI"); Scotia Capital (USA) Inc.;
> Scotiabank Inverlat S.A., Institución de Banca Múltiple, Grupo Financiero
> Scotiabank Inverlat; Scotia Inverlat Derivados S.A. de C.V., Grupo Financiero
> Scotiabank Inverlat; Scotia Inverlat Casa de Bolsa S.A. de C.V., Grupo
> Financiero Scotiabank Inverlat - all members of the Scotiabank Group and
> authorized users of the mark.
> SC-USA is registered as a broker-dealer with the SEC and is a member of the
> NASD and SIPC. The Bank of Nova Scotia, Scotiabank Europe plc and Scotia
> Capital Inc. are each authorized and regulated by the Financial Services
> Authority (FSA) in the U.K. ScotiaMcLeod and ScotiaMcLeod Direct Investing
> ("SMDI") are divisions of SCI. SCI is a member of CIPF. ScotiaMcLeod and SMDI
> do not accept trading instructions via e-mail or voice-mail.
> Pour obtenir la traduction en français:
> http://www.scotiacapital.com/EmailDisclaimer/French.htm
> Traducción en español:
> http://www.scotiacapital.com/EmailDisclaimer/Spanish.htm
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user