This content has been marked as final. Show 5 replies
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?
You would want to add this to your portlet's entry in portlet.xml:
That's all you need to do; you don't need to actually change your portlet code.
<supported-processing-event xmlns:refreshEns="urn:com:oracle:wlp:netuix:event:refresh"> <qname>refreshEns:refresh</qname> </supported-processing-event>