Error Parsing /page.xhtml: Error Traced[line: 42] The entity “nbsp” was referenced, but not declared
问题 I'd like to use non breaking spaces in my JSF page. I know, in plain HTML I could use for this and this works fine. However, when I put those in a Facelets page, then it errors as follows: Error Parsing /page.xhtml: Error Traced[line: 42] The entity "nbsp" was referenced, but not declared. How is this caused and how can I solve it? 回答1: Facelets is a XML based view technology. XML has only five predefined entities. The is not among them. It works only when used in plain HTML or in