You can profile a portlet like any other IBM® WebSphere® Portlet Factory model.
You can use profiles to allow for configure (optional in JSR 168 portals) or edit mode functionality. You can use profiles to vary your portlet behavior based on the group to which the user belongs and whether the model is being executed as a portlet or as a standalone web application.
You can profile a portlet according to IBM WebSphere Application Server group information and the execution mode of the model. In WebSphere Application Server portlets, you can also use profiles to implement configure and edit functionality. (Procedures for JSR 168 portlets are similar. Refer to your portal documentation for additional information.)
Parent topic: Developing portlets: wpf7
Creating conditional code based on execution mode: wpf7