Portlet Factory, Version 6.1.2


 

About Getting a WebAppAccess Object for the Current Model

In the body of a method, use the webAppAccess object that IBM® WebSphere Portlet Factory servlet passes to the underlying Java implementation of the method. In the methods of a class used as a linked Java object, be sure to declare that the methods first argument is a WebAppAccess object. The WebSphere Portlet Factory servlet passes the method the current webAppAccess object to your method.

To get a WebAppAccess object for a linked model:

In a method, use the following code to instantiate a WebAppAccess object for the specified linked model. You would want to do this if you wanted to get or set the variable values in that model or if you wanted to access any other information about the linked model.

 webAppAccess.getLinkedModelInstance("myLinkedModelBuilderCall");

where myLinkedModelBuilderCall is the name of the Linked Model builder call in the model.

Parent topic: Utilizing the WebAppAccess object


Library | Support |