If you look at what is sent by Wicket   (open the Wicket Ajax Debug panel or 
use a debugging proxy like Charles Proxy),
you will see 


<ajax-response>
        <component id="tableWMC2">
                <![CDATA[<tbody wicket:id="tableWMC" id="tableWMC2">
                <tr wicket:id="row">
                <td wicket:id="name">apple</td>
                <td>
                <wicket:container wicket:id="status"><wicket:panel>
                <span wicket:id="label" class="status RED">STATUS HERE</span>
                </wicket:panel></wicket:container>
                </td>
                </tr><tr wicket:id="row">
                <td wicket:id="name">orange</td>
                <td>
                <wicket:container wicket:id="status"><wicket:panel>
                <span wicket:id="label" class="status RED">STATUS HERE</span>
                </wicket:panel></wicket:container>
                </td>
                </tr><tr wicket:id="row">
                <td wicket:id="name">grape</td>
                <td>
                <wicket:container wicket:id="status"><wicket:panel>
                <span wicket:id="label" class="status RED">STATUS HERE</span>
                </wicket:panel></wicket:container>
                </td>
                </tr>
                </tbody>]]>
        </component>
        <header-contribution>
                <![CDATA[<head xmlns:wicket="http://wicket.apache.org";>
                <link href="status.css" rel="stylesheet"/>
                </head>]]>
        </header-contribution>
</ajax-response>


The id and type with null value are just extrapolated and added by tools 
(firebugs and so on), but are not in the html page.

François



> Le 7 juil. 2016 à 13:12, Peter Henderson <peter.hender...@starjar.com> a 
> écrit :
> 
> Thanks François
> 
> 
> 
> On Thu, Jul 7, 2016 at 11:51 AM, Francois Meillet <
> francois.meil...@gmail.com <mailto:francois.meil...@gmail.com>> wrote:
> 
>> You don't define id and type so there are null.
>> 
>> just add id="yourid" type="text/css"
>> 
>> <wicket:head>
>>  <link href="status.css" rel="stylesheet" id="yourid" type="text/css"/>
>> </wicket:head>
>> 
>> 
> Although MDN shows examples without an id or type [1].
> The examples shown by the  html5 standards [2] page also don't have type
> and id for style sheets.
> 
> 
> 
> [1]https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#Examples 
> <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#Examples>
> [2]https://www.w3.org/TR/html5/document-metadata.html#the-link-element 
> <https://www.w3.org/TR/html5/document-metadata.html#the-link-element>
> 
> 
> 
> 
>> François
>> 
>> 
>> 
>>> Le 7 juil. 2016 à 12:24, Peter Henderson <peter.hender...@starjar.com>
>> a écrit :
>>> 
>>> Hello,
>>> 
>>> 
>>> I might have found a small bug.
>>> 
>>> I have a control which has a style sheet link in its head section.
>>> This control is used within a ListView but is initially hidden.
>>> An ajax action causes the control to become visible.
>>> 
>>> The style sheet link added to the page head looks malformed.
>>> 
>>> <head>
>>> <link type="null" href="status.css" rel="stylesheet" id="null">
>>> </head>
>>> 
>>> Full page reload corrects the header link.
>>> 
>>> <head>
>>> <link href="status.css" rel="stylesheet">
>>> </head>
>>> 
>>> Am I doing something wrong or is this a bug?
>>> 
>>> 
>>> I've created a quick start which is available
>>> https://github.com/bollinger/wicket-style-bug
>>> 
>>> 
>>> Thanks
>>> 
>>> --
>>> Peter Henderson
>>> 
>>> Director
>>> Starjar Ltd.
>>> www.starjar.com
>>> 0330 088 1662
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
>> <mailto:users-unsubscr...@wicket.apache.org>
>> For additional commands, e-mail: users-h...@wicket.apache.org 
>> <mailto:users-h...@wicket.apache.org>
>> 
>> 
> 
> 
> -- 
> Peter Henderson
> 
> Director
> Starjar Ltd.
> www.starjar.com <http://www.starjar.com/>
> 0330 088 1662

Reply via email to