By hardcoded I mean my HTML file starts with the following head:
<head>
<!-- hardcoded HTML lines -->
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>Sign In</title>
</head>
After I load the page with Ajax it has:
<head>
<!-- lines I'm adding with decorator -->
<link rel="stylesheet" type="text/css"
href="../../../stylesheets/jquery.mobile-1.0b1/jquery.mobile-1.0b1.css" />
<script type="text/javascript"
src="../../../stylesheets/jquery-1.6.1/jquery-1.6.1.js"></script>
<script type="text/javascript"
src="../../../stylesheets/jquery.mobile-1.0b1/jquery.mobile-1.0b1.js"></script>
<!-- hardcoded HTML lines -->
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>Sign In</title>
<script type="text/javascript"
src="../resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ts1306247910000.js"></script>
<script type="text/javascript"
src="../resource/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax-ts1306247910000.js"></script>
<script type="text/javascript"
src="../resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-ts1306247910000.js"></script>
<script type="text/javascript" id="wicket-ajax-debug-enable">
/*<![CDATA[*/
wicketAjaxDebugEnable=true;
/*]]>*/
</script>
<script type="text/javascript" id="wicket-ajax-base-url">
/*<![CDATA[*/
Wicket.Ajax.baseUrl="wicket/bookmarkable/com.mni.SignInPage?0";
/*]]>*/
</script>
</head>
I'd rather have
<!-- hardcoded HTML lines -->
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>Sign In</title>
be the first thing after <head> followed by the "lines I'm adding with
decorator".
On 7/18/2011 2:10 PM, Martin Grigorov wrote:
What exactly is hardcoded ?
I'm not aware of such documentation but it sounds like a good todo for me.
On Mon, Jul 18, 2011 at 7:35 PM, Scott Reed<[email protected]> wrote:
That works quite well, Martin.
I can add my on-the-fly contributions at the top of the head. I would like
to know how to pin-point the location better so my additions come after the
hard-coded HTML meta content-type and title elements. Is there some
documentation that might explain more about the whole process of rendering
the head?
Thanks,
Scott