Search code examples
jsfprimefacesfacelets

how to display symbol < and > using <p:outputlable>


I am new to primefaces and i am getting error Error Parsing /pages/1.xhtml: Error Traced[line: 134] The value of attribute "value" associated with an element type "null" must not contain the '<' character. anyone know how will be set < and > symbols?

<p:outputLabel value="< 10 min" />
<p:outputLabel value="> 10 min" />

Solution

  • Escape them with

    <p:outputLabel value="&lt; 10 min" />
    <p:outputLabel value="&gt; 10 min" />