On 8/22/05, Ralf Ebert <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> > there is definitely something wrong about your wiki entry
> > http://wicket.sourceforge.net/wiki/index.php/Markup_inheritance . It
> > [...]
> > except for autolink generated CSS url. But that has nothing to do with
> > header components and nothing with markup inheritance. Derived markup
> > should simply look like
> >
> > <wicket:head>
> >   whatever
> > </wicket:head>
> > <wicket:extend>
> >    whatever
> > </wicket:extend>
> I just tried that as stated in the wiki. This works except that
> <wicket:head> sections from the child page markup and from used
> components are ignored. Is something special to mixing markup
> interhitance and header contributing?
> 
> btw, the example in the wiki for the child page markup is:
> 
> <head>
>    <span wicket:id="label"/>
> </head>
> <wicket:extend>
>    Child Page
> </wicket:extend>
> 
> Shouldn't "wicket:head" be used here because the head is ignored on
> child pages (so a component makes only sense in wicket:head) or did I
> get something wrong about this again?
> 
> Regards,
> Ralf
> 

<head> are not specially treated, except 
- the Page is missing the tag and one of the component's markup has
<wicket:head> in which case <head> is automatically added to the Pages
output
- markup inheritance: if the base markup is a Page and the derived
markup has a <head> it is merged with the base markup's <head>.

<wicket:head> are more often than not used inside <head> for
previewability reasons and are generally useful for Panels (and
Borders). Note: you have to use addToHeader() (instead of add()) if
you want to add a component to <wicket:head>. Note 2: markup
inheritance merges <wcket:head> from base with and <wicket:head> from
derived markup and <head> from base with <head> from derived markup in
case of Pages. It'll NOT merge <wicket:head> with <head>

Unfortunately the wiki is currently own and I can not read what I've
written there, but I'll check it once it is up again.

Juergen


-------------------------------------------------------
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