OpenWGA 7.9 - TMLScript reference

TMLPortlet "portlet"
Method :

forceState()

On object TMLPortlet "portlet"
Usage Forces a state on a portlet
Description

A portlet state consists of its mode, its context and its session variables.

Under some circumstances the browser client may override the state of a portlet with a state that was stored clientside. This can happen on some Non-AJAX actions for portlets and is not always desired. The result may be that an action should modify portlet state and the page is actually loaded with the modified state but is immediately reloaded with the client-stored old state.

Execute this method on a portlet where you want to force the current state to overwrite eventually existing states stored on the client.

Allowed in script types
  • WebTML pages and normal WebTML actions