title: JSF Temporary Variable
body: <p>Is there a way to temporarily save the value of calcuation in a JSF page?
  I want to do the following without calculating twice:</p>
  
  <pre><code>&lt;h:outputText value="#{complexModel.currencyAmount.currency}"&gt;
  &lt;h:outputText value="#{complexModel.currencyAmount.amount}"&gt;
  </code></pre>
  
  <p>I've tried using the alias bean but I get an error saying java.lang.IllegalArgumentException - row is unavailable.</p>
  
  <p>e.g.</p>
  
  <pre><code>&lt;t:aliasBean id="bean" alias="#{bean}" value="#{complexModel.currencyAmount}"&gt;
    &lt;h:outputText value="#{bean.currency}"&gt;
    &lt;h:outputText value="#{bean.amount}"&gt;
  &lt;/t:aliasBean&gt;
  </code></pre>
  
  <p>Thanks.</p>