[ 
https://issues.apache.org/jira/browse/WICKET-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Grigorov resolved WICKET-3960.
-------------------------------------

    Resolution: Cannot Reproduce

That's why I asked for a quickstart demonstrating the problem with 
WebMarkupContainer.

I tried with:
public class Page2 extends WebPage {

    private static final long serialVersionUID = 1L;

    public Page2(PageParameters parameters) {
        super(parameters);
        
        WebMarkupContainer html = new WebMarkupContainer("htmlTag");
        html.add(AttributeModifier.append("class", "demo"));
        add(html);
        html.add(new Label("label", "inner component"));
    }

}

and markup:
<!DOCTYPE html>
<html wicket:id="htmlTag">
        
        <head>
                <title>A page</title>
        </head>
        
        <body>
        
        <span wicket:id="label"></span>
        </body>
        
</html>

and it works without any problems in 1.5-SNAPSHOT.

> Setting a wicket:id on the page' html tag generates a validateHeaders warning.
> ------------------------------------------------------------------------------
>
>                 Key: WICKET-3960
>                 URL: https://issues.apache.org/jira/browse/WICKET-3960
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.5-RC5.1
>            Reporter: Sylvain Vieujot
>            Priority: Minor
>
> To be able to set the html lang and dir attributes, I set a wicket:id on the 
> html tag and instantiate a new WebMarkupContainer( "html" ) as explained here 
> :
> http://apache-wicket.1842946.n4.nabble.com/set-attributes-of-HTML-tag-of-page-td1919239.html
> But this generates the following warning :
> Aug 12, 2011 12:51:24 AM org.apache.wicket.markup.html.WebPage validateHeaders
> SEVERE: 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Aug 12, 2011 12:51:24 AM org.apache.wicket.markup.html.WebPage validateHeaders
> SEVERE: You probably forgot to add a <body> or <head> tag to your markup 
> since no Header Container was 
> found but components were found which want to write to the <head> section.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to