The HEAD parts of your HTML files can be inherited (using Wicket
1.1beta2 and above) by writing

The parent page:
        <head>
                <wicket:head>
                        <meta name="The parent-Head" content="parent
head" />
                        <link rel="stylesheet" href="style.css"
type="text/css" media="screen, print" />
                </wicket:head>
        </head>


The child page

        <head>
                <wicket:head>
                        <title>Child</title>
                </wicket:head>
        </head>

Stefan Lindner
------------------------------------------------------------------------
--
Visionet GmbH, Am Weichselgarten 7, 91058 Erlangen
Tel.: (09131)691-230, FAX: (09131)691-111
E-Mail: mailto:[EMAIL PROTECTED], Internet:
http://www.visionet.de

On 8/25/05, Ingram Chen <[EMAIL PROTECTED]> wrote:
> Dear friends,
>=20
>   I want a feature that inherit both <head> and <body> like this:
>=20
> ParentPage:
> <html>
>  <head>
>  <parent head... />
>  </head>
>  <body>
>  Base Page Before
>  <wicket:child/>
>  Base Page After
>  </body>
> </html>
> ChildPage:
>=20
> <head>
>  <title>Child</title>
>  <child head ... />
> </head>
> <body>
> <wicket:extend>
>  Child Page
> </wicket:extend>
> </body>
>=20
> and then combine head and body as
> <html>
>  <head>
>  <parent head... />
>  <title>Child</title>
>  <child head ... />
>  </head>
>  <body>
>  Base Page Before
>  Child Page
>=20
 Base Page After
>  </body>
> </html>
> I have tried the example from=20
> http://wicket.sourceforge.net/wiki/index.php/Markup_inheritance
>=20
> however, wicket complain that it can not find "label" component 
>defined i=
n
> the <head/>
> Is the example out of date ? or I just missing something ? or there is

>alternative method to archieve above feature ?
>=20
> Thanks in advance.
> --=20
> [If you can't read this mail correctly, you need to change your 
>encoding =
to
> UTF-8]
> Ingram Chen
> Java [EMAIL PROTECTED]
> Institue of BioMedical Sciences Academia Sinica Taiwan
> blog: http://xexex.blogspot.com/


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to