Current Position:Home > Template and parameter evaluated many times

Template and parameter evaluated many times

Update:10-11Source: network consolidation
Advertisement
Hello,
I defined a template using ui:composition. This template has one parameter which is used about 20 times.
Template :
<ui:composition>
<h:outputText value="#{myParam}" />
</ui:composition>
in the file using the template :
<ui:decorate template="mytemplate.xhtml">
<ui:param name="myParam" value="#{myComponent.myMethod(otherParam)}" />
</ui:decorate>
The problem is that the myComponent.myMethod is called every time that myParam is used in the template. And of course, the call to this component requires time. Why is myParam not evaluated only once when it is passed to the template ? How can I do to achieve this ?
Thanks for your help.

The Best Answer

Advertisement
I can't comment on the why, but I can make a suggestion on your last question. Change your myComponent.myMethod(otherParam) code so that the result cached for subsequent calls.
  • Template and parameter evaluated many times Update:10-11

    Hello, I defined a template using ui:composition. This template has one parameter which is used about 20 times. Template : <ui:composition> <h:outputText value="#{myParam}" /> </ui:composition> in the file using the template :

  • ORDS Template with parameter does not work Update:10-11

    Hello everybody, I can not get working a RESTful Service using the ORDS_SERVICES -API (ORDS version 3.0.0.343.07.58), same Query without parameter (hardcoded product_id) works fine. declare l_module_id number; l_template_id number; l_handler_id  numb

  • Where used in web templates  for parameter groups Update:11-30

    Does SAP deliver any where used functionality for parameter groups? I need a report or function that can take as input a parameter group (fully qualified) and deliver back all the web layouts and planning folders that the parameter group (or for that

  • BusinessObjects Portal Integration - iView Template Missing Update:10-11

    Hello I have installed my BusinessObjects for Portal as follows: 1. We already have BI 7.0 on SQL 2005 on BIDEMOSER SERVER. 2. Installed BusinessObjects Enterprise 3.1 , Crystal Reports 2008, SAP GUI 7.1 and SAP Integration Kit on this new server nam

  • Multiple template language in Bursting Control File Update:10-11

    Hello, I have created a tempalte in English language. I have used translation for French and Polish Language using .xlf file How to call them in the Bursting control file? I am calling the French language as <xapi:template type="xsl-fo" locat