In my Facelets template I used a XHTML doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I'd like to change this to HTML5 doctype as per the general recommendation:
<!DOCTYPE html>
However, JSF threw a parsing error:
javax.faces.view.facelets.FaceletException: Error Parsing /template.xhtml: Error Traced[line: 42] The entity "nbsp" was referenced, but not declared.
The HTML
entity is not parsed then. The entity is used as follows:
<p:menuitem value=" My menuitem">
How is this caused and how can I solve it?