I recently updated tomhawk 1.1.5 to 1.1.7 and noticed that single
checkboxes are rendered inside an additional label tag.

The html output is now:

<LABEL>

  <INPUT id="..." type="checkbox" />foo

</LABEL>

 

Why is this additional label tag rendered in 1.1.7? 

Is there any benefit?

 

It is in class org.apache.myfaces.renderkit.html.extHtmlCheckboxRenderer
in method renderSingleCheckbox

 

...

  writer.startElement(HTML.LABEL_ELEM, uiSelectMany);

  renderCheckbox(...);

  writer.endElement(HTML.LABEL_ELEM);

...

 

 

Michael

Reply via email to