1
#{'«'.concat(text)}

It's ok. But

#{'«'.concat(text)}

Exception:
javax.faces.view.facelets.FaceletException: Error Parsing /page.xhtml: Error Traced[line: 45] The entity "laquo" was referenced, but not declared.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
DmitMedv
  • 980
  • 3
  • 11
  • 22

1 Answers1

2

If you use facelets then this is the expected behaviour.
You should use the hexadecimal notation or declare the entity you wish to use in the doctype.Have a look at these websites for more details.

http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML

Error Parsing /page.xhtml: Error Traced[line: 42] The entity "nbsp" was referenced, but not declared

Community
  • 1
  • 1
Periklis Douvitsas
  • 2,431
  • 1
  • 13
  • 14