We are working on Weblogic Portal 10.3.2 and using JSF 1.2 for portlet development. We have some code in our request scoped JSF bean, but that is not getting executed with every page reload.
Below is the issue:-
Restarting the portal and is working for once.
Again reloaded this page, but it is not working.
Went to portal console and removed the portlet
Refresh the page
Again went to portal console and added the portlet
This time, it again worked for first time and not for further requests.
We are publishing an exclusive event for refreshing the portlet, however request scoped bean constructor is not getting executed.
It is very critical and urgent. Any input will be helpful.
It's possible your portlet isn't being re-rendered because the content has been cached. You can play with caching settings, or simply subscribe your portlet to the "refresh" event described here:
You would do this by adding an entry in the WEB-INF/portlet.xml file. The refresh event is sent by the WLP framework every time a page is rendered, and any portlets receiving an event will have its cached content invalidated, so simply subscribing to this event will in effect turn off all caching for your portlet.
Thanks a lot for your quick response! So, just to confirm, I have to add new event like below:-
Could you please guide me a bit more on this?