title: JSF: h:outputText; how to show a dash when the value is empty string?
body: <p>I'm using h:outputText tags to display readonly data.  Ex:</p>
  
  <pre><code>&lt;h:outputText value="Phone Number:" /&gt;
  &lt;h:outputText value="#{userHandler.user.phoneNumber}" /&gt;
  </code></pre>
  
  <p>When "phoneNumber" is an empty string or a null, I want to display a dash "-" as the value.</p>
  
  <p>Is there any easy way to do this maybe with expression language or something?  </p>
  
  <p>BTW, I thought about adding methods to the User class like getPhoneNumberDisplayText() that could do the check internally, but I since it's a view issue, I'd rather keep the code in the JSF page.</p>