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