Unwanted Render Request or caching of display contents
posted 10 years ago
I have made a JSR 168 portlet that shows some content to its user (View mode). A content manager has access to an extra Configure Mode, in which he or she might add or remove content items. When done, the content manager (also being a user) checks the modification by returning to the View Mode.
The problem is, that the View mode is then still displaying content that was just removed, or it's not showing content that was just added. The technical explanation (I guess) is that the Portal Server simply chooses not to perform an Action Request, but just a Render Request instead because it 'thinks' just showing the View display contents will suffice.
How can I FORCE Portal Server to perform an Action Request (so the Action for the View mode is invoked, which in turn accesses the database to renew the data that is to be displayed)? Or do any other activity to achieve the same result?
I tried setting the <expiration-cache> attribute in portlet.xml to 0 but no effect.