title: How to insert special characters like & and < into JSF components' value attribute?
body: <p>How to insert special characters like <code>&amp;</code> and <code>&lt;</code> into JSF components <code>value</code> attribute ?</p>
  
  <p>For example: I want something like this: </p>
  
  <pre><code>&lt;h:outputText value="Tom &amp; Jerry Show" /&gt;
  </code></pre>
  
  <p>When I try this, I get the following exception:</p>
  
  <blockquote>
    <p>javax.faces.view.facelets.FaceletException: Error Parsing /foo.xhtml: Error Traced[line: 15] The entity name must immediately follow the '&amp;' in the entity reference.</p>
  </blockquote>
  
  <p>And in case of <code>&lt;</code>, I get the following exception:</p>
  
  <blockquote>
    <p>javax.faces.view.facelets.FaceletException: Error Parsing /foo.xhtml: Error Traced[line: 15] The value of attribute "value" associated with an element type "h:outputText" must not contain the '&lt;' character.</p>
  </blockquote>