Template and parameter evaluated many times

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.

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.

Similar Messages

  • All of a sudden my itunes wont come up when i hit the desktop icon. un and re installed many times, tried new users, it finally gave me "you need to reinstall sqmapi.dll " im a noob and i have know idea what that is or where i can get it. i cant open any

    all of a sudden my itunes wont come up when i hit the desktop icon. un and re installed many times, tried new users, it finally gave me "you need to reinstall sqmapi.dll " im a noob and i have know idea what that is or where i can get it. i cant open any file or library that has anything to do with itunes except safari and quicktime are fine. im about to pull out whats left of my hair.

    Okay, that's got one thing ruled out at least.
    Can you check something for me, big? I'd like to see if iTunes launches with the Bonjour Service disabled.
    In your Start menu, right-click Computer and select "Manage".
    Expand "Services & Applications".
    Open "Services". (Perhaps maximise the screen to better see what's going on.)
    Right-click the Bonjour Service and select "Properties".
    In the General tab, set the Startup type to "Disabled":
    ... and click OK.
    Restart the PC and try launching iTunes. Does it open this time?

  • Hello guys..!! I have got my new  iphone 4 2 days ago.The same day it got a problem of auto restart in every 1, to 2 minutes. I updated and restored it many times...but of no use... can any one help me how to solve this problem..!!

    Hello guys..!! I have got my new  iphone 4 2 days ago.The same day it got a problem of auto restart in every 1, to 2 minutes. I updated and restored it many times...but of no use... can any one help me how to solve this problem..!!

    Go to Settings/General/Reset - Erase all content and settings. the connecto to iTunes and restore as a New phone. Do not restore any backup. If the problem persists you have a hardware problem. Take it to Apple for exchange.
    This assumes that the phone is not hacked or jailbroken. If it is you will have to go elsewhere on the internet for help.

  • I can't open video file in the page , i download and install flash many time but don't work , i use firefox 5 and windows 7

    i can't open video file in the page , i download and install flash many time but don't work , i use Firefox 5 and windows 7

    My current version of Chrome is having problems, too! It's so annoying. Anyone have any suggestions now? I basically can't view or download any PDFs because of this.
    Does anyone else think this is a problem not only with Adobe? I would think Apple would have something to do with this? Wouldn't they get some idea from the developer versions that no browser can open PDFs while running Lion!? Pretty bad customer service on the part of a company that prides itself on being VERY customer-friendly. Wouldn't you say?

  • My iPad mini keeps turning itself off and then the apple logo keeps flashing constantly, i have charged it fully and restored it many times. what can i do?

    My iPad mini keeps turning itself off and then the apple logo keeps flashing constantly, i have charged it fully and restored it many times. what can i do?

    If you have restored to factory settings and started as new, there is nothing more that you can do on your own. Make an appointment at an Apple Store and ask them for help. You might have a hardware problem and the Apple Store techs will be able to determine that.

  • Applescript: how to record and return how many times a number appears when using a random number generator

    I create one rng and repeat another rng that many times like so:
    set x to (random number from 0 to 250)
    repeat x times
      set rn to (random number from 1 to 10)
    end repeat
    now what i would like to do is record and return how many times 'rn' comes up with one particular number. Any ideas?

    You could set up a list and increment the contents of a particular index each time it comes up, for example:
    set how_many to {0, 0, 0, 0, 0, 0, 0, 0, 0, 0} -- 1 thru 10
    set x to (random number from 0 to 250)
    repeat x times
      set rn to (random number from 1 to 10)
      set item rn of how_many to (item rn of how_many) + 1
    end repeat
    return how_many

  • My ipad has a passcode but i forgot it and i tried many times and it says "Ipad is disabled connect to itunes" so i did that and it pops up and says "you must enter your passcode to access this itunes account"

    my ipad has a passcode but i forgot it and i tried many times and it says "Ipad is disabled connect to itunes" so i did that and it pops up and says "you must enter your passcode to access this itunes account"

    THave you looked at this link  http://support.apple.com/kb/HT1212

  • How do I enable cookies on my iPad 2 . I have went to Safari and changed it many times but a website keeps telling me to enable it I've been on this site many times before with out a problem

    How do I enable cookies on my iPad 2 . I have went to Safari and changed it many times but a website keeps telling me to enable it I've been on this site many times before with out a problem

    The website may not run properly on a mobile device. You can try another browser (search the App Store) but it may be hard-coded into the website itself.

  • Itunes does not open. I have tried to uninstall it and install it many times as i have seen on some communities but still keep on getting the Itunes was not install correctly. Please reinstall itunes. Error 7 (Windows 193). I have windows 7.

    iTunes will not open, I keep getting the error 7 (windows error 193).
    I have tried many recommendations, erasing folders, reinstalling it many time but nothing.
    I have a windows 7 Lenovo ideapad.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you are running 64-bit Windows and the above steps haven't helped try installing the version of iTunes that can be downloaded from this support document. iTunes 12.1 for Windows (64-bit — for older video cards)
    tt2

  • HT3775 Why won't a video clip play all the way through without stopping and loading so many times?

    Any video clip that comes via email will not play all the way through without stopping so many times to load that a short clip takes 10 minutes to watch.  Sometimes, the video simply stops and loads forever and ceases to work at all.
    This happens for Youtube videos also.
    I am using a Snow Leopard Imac.

    This happens for Youtube videos also.
    Uninstall the currently installed Flash plugin then reinstall new.
    Very important to uninstall the old first.
    Uninstall >  Troubleshoot Flash Player | Mac OS
    Then reinstall new from here >   http://get.adobe.com/flashplayer/
    Then restart your Mac.

  • I want to open a folder and see how many times theres inside like you could before...

    I want to open a folder and see how many items theres inside like you could before...
    How can you do that on maverick plz ?

    Open it and choose Show Status Bar from the Finder's View menu.
    (112378)

  • I updated my iTunes and now it won't recognize my iPhone anymore. I uninstalled and re installed many times still nothing

    I've tried uninstalling my iTunes many times but every time I re install it still won't recognize my iPhone. Can someone please help me?? :((

    Windows or mac?

  • My iPhone shuts down with certain apps and says dead Batt. with plenty left. Now it wont turn on after starting up and turning off many times

    I got my Dads old iPhone 3GS for Christmas and reset it to its factory settings. It had this problem with my Dad to, thats why he got a new phone. It was claiming that the battery was dead when I opened certain apps eventhough it had plenty of battery, It made me charge it and then said it was plenty charged. Why? That happened multiple times. That's what happened to my Dad as well. This however, is me only. O.K. so, the other day, it did it's battery dead shutdown thing, so I plugged it in, but it kept starting up, then shutting down again, starting up, and shutting down again. Now I've left it on the charger for about a days, it's not on the charger now, and it won't turn on. Help!!!!!!

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If the issue persists, take the device to Apple for evaluation and possible replacement.

  • Is it better to make multiple arrays of data or one big array and access it many times?.

    I am going to acquire up to 5 samples per second of 50 channels over 30 minutes then average ten of the channels and generate a report.  There are other bits of information needed to complete my task and graphs.  Would it be "faster" for the PC to have one large 4d array with all the information or faster to make several separate arrays?  Would it be more reliable to have one or many(fewer code lockups)?
    Also,
    Yes, I do mean to be using labview.  I expected this crowd to have a different perspective (and I could not find LV blog).
    For each channel, I want to scale per 6 other variables per channel(nominal high, mid, low, and reading high, mid low)  So there is the channels and time, then there is the calibration values, then there is the calibrated readings.  If I put all that along with my test information in one large matrix, it would be simpler for me to remember where in the matrix each item is, but if it is in several matrixies then the "active" matrix is smaller while the other information is not used.
    The sales rep for NI was indicating the computer power is much higher than I am used to.  (I have not started programming yet, I am preparing for a huge project on a "new"(2 year old)PC.)  I am trying to understand just how much power I am missing from my days of gwbasic, Q-basic and our current Visual Basic 6.0 running on XP.  This matrix question is new to me.
    Solved!
    Go to Solution.

    I don't see where you are getting 4 dimentions for your array.  I only see 2: channel and sample.
    From what you are describing, I would put any "support" information for a channel into a cluster.  So you should have an array of clusters to contain your support data.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Firefox will not fully load and run anymore just out of the blue when I click to run it it just sits and does not respond I have totally uninstalled and reinstalled this many times and it still does the same thing why would it stop working?

    When I booted my computer up from cold and click firefox to run it sat there and tryed to load instead it sits there and does the nor responding thing. I have totally uninstalled the program a few times and re installed a new download and the same thing happen. I can not run firefox any longer and i have run it everyday for a very long time. This seems to be the only program with an issue.

    None of the stuff in " http://kb.mozillazine.org/Locked_or_damaged_places.sqlite " helps. I have tried and tried and I have even wipe the computer clean still didn't help. I got the same problem as he/she has got in the first posted. Can add some web pages but not all the web pages I want.. I should have never updated to 3.6.13... That's when it all started for me, from that version..... Now Version 3.6.14 is out, I was hoping the version 3.6.14 might would fix the problem wrong again....
    Funny thing is i can not even Bookmark Firefox.com!!!!!...lol
    So any ideas on how to fix it other than the link giving would help.
    Thanks.

Maybe you are looking for

  • VTML-Tags for text-to-speech do not work in Captivate 6 - are they working in Cap. 7 again?

    I had a hart time to find out, that the functionality was "forgotten" to be programmed in the version 6. Together with Neospeech I worked long to make single voices work in full functionality and it cost additional licence fee... unfortunately the vo

  • Password Protect a Word Document

    Is there any way you can password protect just a single file

  • Getting my work back

    I rendered and saved a project I have been working on all day.  Then I went into another project to work on that.  I wen't back into the old project to show someone what it was looking like and it opened up a very old version of the project.  I don't

  • [URGENT] Signout issue - Possible Breach

    So, I signed in to skype.com using my Microsoft Account and signed out.. Then opened a new tab and opened outlook.com, it directly opened my account.. There is same issue on other microsoft sites.. So is it a security issue? FYI, I'm using IE9 on Win

  • RMI port misuse

    I'm getting really ticked off with clients having problems using my software because the RMI port 1099 (and often enough 1098) is being misused by another process. Does the IANA registered port list mean anything at all? I guess I can't change the wo