title: Display Current Date on JSF Page
body: <p>Is it possible to display the current date (today's) in JSF without using a backing bean?</p>
  
  <p>I have the following code snippet , but it didn't work out. </p>
  
  <pre><code>&lt;div class="leftSide"&gt;Today's date #{currentDate}&lt;/div&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;f:facet name="header"&gt;  
  &lt;h:outputText value="Today's date" /&gt;  
  &lt;/f:facet&gt;
  &lt;h:outputText value="#currentDate"&gt;
      &lt;f:convertDateTime pattern="MM/dd/yyyy" type="date" /&gt;
  &lt;/h:outputText&gt;
  </code></pre>