title: When to use preRenderView versus viewAction?
body: <p>When should one use the preRenderView event to initialize data for a page versus using the viewAction? Are they equal in use and do they have the same effect?</p>
  
  <p><strong>preRenderView Event</strong></p>
  
  <pre><code>&lt;f:metadata&gt;
    &lt;f:event type="preRenderView" listener="#{myBean.initialize}"/&gt;
  &lt;/f:metadata&gt;
  </code></pre>
  
  <p>or</p>
  
  <p><strong>viewAction</strong></p>
  
  <pre><code>&lt;f:metadata&gt;
    &lt;f:viewAction action="#{myBean.initialize}"/&gt;
  &lt;/f:metadata&gt;
  </code></pre>