The IBMWorkplaceFormsServerPortlet maintains a state of either empty or full. The empty state means that no form is loaded, and that doViewEx
should be called to load a form. The full state means that a form is loaded and that doView
does not need to be called.
However, in our two pane scenario, this means that a form is loaded only when the user first selects a form. If the user selects another form after that, the view portlet is not updated because doViewEx
is never called.
To correct this, you must overwrite the doView
function and force the portlet to refresh when a new form is selected. This will put the portlet in its empty state, which will cause the portlet to call the doViewEx
The following algorithm demonstrates how to overwrite the doView
- Check the session to see if the user has selected a new form in the list portlet.
- If the user has selected a new form, refresh the view portlet by calling resetPortlet.
Call the super method. For example:
- The resetPortlet method is part of the IBMWorkplaceFormsServerPortlet class.
Parent topic: Creating a View Portlet
- Once you have called the super, you can end your doView method. The IBMWorkplaceFormsServerPortlet object will continue operations from that point, and will call doViewEx immediately after doView has finished processing.