ShowTable of Contents
Personalization is the process of tailoring the content rendered to the user based on user characteristics or preferences. It involves accommodating individual needs of seeing resources which may be different from user to user. Personalization is very useful for consumer end for enhancing customer needs and e-commerce sales. Though many of the personalization features are specific to HTML, it can be migrated to Mobile Platform as well. To migrate it to mobile devices, the content has to be rendered in HTML as well as XDIME ( XML Device Independent Markup Extension). XDIME allows content to be rendered in a device independent format. Based on the device properties the XDIME content is converted by the MCS (multi channel server) to mobile specific support. This means that personalization demo can be used to generate HTML portlet for PCs as well as XDIME content to render it on mobile devices. Hence, only one copy of the content needs to be generated which can be rendered for both PC and mobile devices.
The samples provided with article provides an extension to YourCo User Info, YourCo General News, YourCo General News Details, YourCo Internal News, YourCo Products, YourCo Promotions, YourCo Offer Banner, YourCo Offers and YourCo Services portlets (that are shipped with WebSphere Portal base product) so that these portlets can be renderd on mobile devices using MPA.
This article requires the following runtime environment:
Mobile Portal Accelerator 6.1.X/7.0
To test this use Mobile Simulators or firefox add-on called User-Agent-Switcher to simulate mobile device requests.
Updating and Adding the Portlets to the Page
Install the Personalization sample and database
o Goto the Portal InfoCenter link eg:
o Search for “Install the Personalization sample and database” follow the steps under this section to install the sample PZN demo portlet and users.
Update the WAR File on the Portal Server
o Download the pzndemo.war file.
o Login into Portal Server as an adminstrator
o Select Adminstration->Portlet Management->Web Modules
o Search by: File Name starts with Search: pzndemo
o Select the Update Web module icon next to pzndemo.war
o Browse to the war file you just downloaded and select Next then Finish
Change access rights/properties of portlets
o Login into Portal Server as an administration
o Select Administration->Portlet Management->Portlets
o Search by: Title Starts with Search: YourCo News
o Select Assign access to portlet icon next to YourCo News
o Click on Edit Role icon for User roles
o Click on Add icon
o Search for Users and User Groups: User Groups Search by: All available
o Click on the Search icon
o Select the check box for Users and User Groups
o Click Ok icon
o Click on YourCo News link
o Click Apply icon and then click Ok icon for Are your sure you want to modify the inheritance and propagation on the resource?
o Click the Done icon
o Repeat the above steps for YourCo News Details,YourCo User Info, YourCo Internal News, YourCo Products, YourCo Promotions portlets, YourCo Offers Banner, YourCo Offers and YourCo Services
Add Portlet instance on a mobile page
o Login into the Portal Server as Adminstrator
o Select Administration->Manage Mobile Pages
o Expand Content Root -> Home -> Mobile Portal
o In the left panel under Manage Mobile Pages, click the New Page icon
o Under Title, enter Mobile Personalization
o In the Type of Page section, select Set Page Layout Properties
o Tick the checkbox for XDIME option
o Click on the OK icon
o Click Ok icon on Page Properties
o Navigate to Content Root->Home->Mobile Portal->Mobile Personalization
o In the Portlets section of the right panel, select Edit
o In the left panel, select Add Portlets icon
o Search By: Title Starts with Search: YourCo News
o Select YourCo News and click OK
o Click Done
o In the same fashion other portlets (YourCo News Details, YourCo User Info, YourCo Promotions, YourCo
o Using a mobile device simulator/UserAgent, login into the Mobile Portal as one of the below user ids:
and password pzndemo
o Access the Mobile Personalization Page just now created and view portlet that is added on the Page.