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 :

  • LMS 4.2 Template Center parameter file Update:11-30

    Is it possible to run templates from Template Center against a parameter file instead of interactive setting the variables analogue to compliance base line templates? If yes where can I find a documentation, how to deploy template center templates wi

  • 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

  • DefaultValue in BIP data template's parameter is not working Update:11-30

    Hi, I have given the below in BIP data template and submit the concurrent program(in R12 ) without parameter. But the below given default value has not been taken by the program. <parameter name="P1" dataType="character" defaultValu

  • How can i do parameter evaluation of nonlinear differential equation? Update:11-30

    here is my equations: dx/dt = u*x-a*x ds/dt = b*u*x+c*x dp/dt = d*u*x+e*x+f*p and u = um*s/(km+s+s^2/ki) the parameters a,b,c,d,e,f is already known, and i have 3 arrays of data of x,s,p, and the parameter i want to identify is um,km,and ki. i tried

  • Parameter evaluation order - CVI 2012 vs. 2013 Update:11-30

    Here's something I just recently got burned with.  It turns out that CVI 2013 evaluates parameters in a function call in a different order than CVI 2012.  Take this code for example: #include <stdio.h> void multiprint(int arg1, int arg2, int arg3, i

  • Query template's Parameter tab in V11.5 Update:11-30

    hello, the above mentioned tab shows 32 count parameters available.  is this the limitation?  are there any method for adding more parameters? Sincerely, Shiroh Kinoshita - SAP JapanChristian - thanks for clarifying that the supposed 'limitation' rea

  • 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