Hi,

It'll NOT merge <wicket:head> with <head>
Sorry, I have to admit, I don't like that. This makes the rules for header generation far two complicated. I would favor something more transparent like: wicket:head is for runtime and gets into the header, head is for development and gets ignored. What are the reasons for such complicated head handling?

If I got your description right, then something isn't working in the current beta as well: When stating a head in the parent markup, head and wicket:head content of the child markup gets ignored at all. That doesn't matter in my case, but when stating: head in parent markup, no head in child markup and a wicket:head in a component (for javascript injection), this doesn't work (component js doesn't get into the head). This should not be possibile at all, and if there are cases where a components wicket:head gets ignored, an exception should be thrown in these cases. Even when adding a wicket:head to my parent markup, the components wicket:head gets ignored (it worked without problems when not using component inheritance).

I think there is something wrong with wicket:head when using markup inheritance in the current beta. If you need more information please tell me. My markup files:


Parent markup:

<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:wicket="http:// wicket.sourceforge.net/">

  <head>
    <title>Test</title>
    <link rel="stylesheet" type="text/css" href="css/test.css"/>
  </head>
    <body style="background-color:#E7EAFE;margin:0px;">

        <div>
              <wicket:child/>
          </div>

    </body>




Child markup:

<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:wicket="http:// wicket.sourceforge.net/">

  <head>ignored</head>
  <wicket:head>ignored, but shouldn't be ignored</wicket:head>

  <wicket:extend>

       Test

    </form>

  </wicket:extend>

</html>



Component:

<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:wicket="http:// wicket.sourceforge.net/">

  <wicket:head>
      <script type="text/javascript">
          alert("ignored");
      </script>
  </wicket:head>

</html>




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