Portlet Factory, Version 6.1.2


 

Using a different model for the Configure or Edit mode

If changing the look and feel of the Edit page does not provide you with the changes you want to implement, you can create a WebSphere Portlet Factory model that implements all the Configure or Edit functionality you want. An example of when you needed to implement your own Configure or Edit model would be if you wanted to provide alternate controls for setting input values, such as a file chooser for a user to set a background image or a List builder call that simplifies the multi-selection of available options. These UI controls are not included as controls which can edit a profile entry, so you would need to override the default behavior.

You can create a model that implements the Configure or Edit functionality for your portlet by using the Portlet Customizer builder. The Portlet Adapter builder call in the portlet model references the model with the Portlet Customizer in it as its Edit or Configure model. In turn, the Portlet Customizer builder call specifies the portlet model as the portlet for which it implements the Configure or Edit functionality.

Before you create a Configure or Edit model for your portlet, confirm that your portlet model has a Portlet Adapter builder call in it and that it has profiled builder call inputs.

Note: When switching from Configure to Edit modes, be aware of the following behavior when working with the Configure and Edit modes of portlets: If you create a portlet that has one or more profile sets switched to "configure" in the Portlet Adapter builder, you can click on the configure (wrench) icon to configure the profile set. However, if you decide to switch that portlet from configure to edit, in the portlet adapter the edit functionality will not work properly.

While it appears that you are still able to click the edit (pencil) icon and modify the profiles, changes are not be picked up in the portlet when you view the portlet in the portal. You can fix this by cloning the portlet by re-copying the IBM portlet adapter and choosing the same model.

Parent topic: Overriding the default Configure and Edit display


Library | Support |