• 1 reply
  • Latest Post - ‏2012-10-10T17:12:41Z by Michael Burati
1 Post

Pinned topic How to set Startup data uses WEF

‏2012-10-10T17:04:32Z |
How can we use WEF to call a web service from the portlet's init() method. That is create a startup object that caches some data for drop downs etc.
Updated on 2012-10-10T17:12:41Z at 2012-10-10T17:12:41Z by Michael Burati
  • Michael Burati
    Michael Burati
    352 Posts

    Re: How to set Startup data uses WEF

    The portlet implementation's init method is called before the WEF model based webapp is loaded/run, so that's not the right place.

    I suggest looking at the Event Handler mechanism to call an action and the on webapp load event in particular, to see if that will work for your use case.
    If the results will be the same across users and requests, then you may also want to take a look at the Cache Control builder, so the results can be shared across users.

    I hope that info helps,
    ..Mike Burati
    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.