Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Connections wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 1.0
  • 1.0.x
  • 2.0
  • 2.0.1
  • 2.0.1.1
  • 2.0_media
  • 2.5
  • 2.5_deployment
  • 2.5_media
  • 2.5_performance
  • 3
  • 3.0
  • 3.0.1
  • 3.0.1_media
  • 3.0_media
  • 3_deployment
  • 8.1.1
  • 8.2
  • activities
  • administrators
  • api
  • best_practices
  • blogs
  • bookmarks
  • business_card
  • cluster
  • communities
  • community
  • community_manager
  • connections
  • connections_3
  • connections_301
  • customization
  • customize
  • customizing
  • demos
  • deploying
  • deployment
  • deployments
  • developers
  • dogear
  • Domino
  • Edge server
  • education
  • error messages
  • files
  • forums
  • getting_started
  • Help
  • home
  • home_page
  • homepage
  • how-to
  • HTTP server
  • ibm
  • index
  • installation
  • integration
  • iOS
  • ipad
  • iWidget
  • J2EE
  • javadoc
  • lc3.0
  • learning
  • lotus-connections
  • mml
  • mobile
  • Notes
  • performance
  • person_card
  • Portal
  • portlet
  • portlet_factory
  • profiles
  • proxy server
  • quickr
  • Redbooks
  • rest
  • reverse proxy server
  • Sametime
  • scenarios
  • search
  • security
  • self-paced
  • SSO
  • tags
  • test_infrastructure
  • troubleshooting
  • tuning
  • video
  • VideoFest
  • videos
  • WAI
  • WAS
  • web_seminar
  • WebAppIntegrator
  • WebSphere
  • widgets
  • wikis
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Customization > iWidget support in the Home page
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

iWidget support in the Home page 

expanded Abstract
collapsed Abstract
No abstract provided.
   

This section deals with the specifics of implementing widgets for the Home page.  

In the Home page, the administrator makes the widgets available to end-users using the Administration tab in the Home page user interface. (See "Adding widgets to the Home page" in the Lotus Connections Information Center for more information.) End-users can then customize the Home page by adding new widgets to their page from the widget palette. The administrator can also specify which widgets are open by default for new users. For more information, see "Managing widgets" in the Lotus Connections Information Center.  

Widgets can be added to the following placement areas in the Home page:  
  • On the Updates tab (which shows the "river of news") - users can add widgets to the sidebar, under the MY STATUS widget.
     
    The Updates tab
 
  • On the My Page tab (the legacy Widgets page from Lotus Connections 2.0) - the entire page is a placement area where users can place widgets.
     
     The My Page tab

Accessing Lotus Connections components  
Due to different configurations in the deployment of the IBM® Lotus® Connections features, the URL of each feature might not be known at widget development time. To overcome this limitation, the Home page provides a functionality that inserts the root URL of the different Lotus Connections features into the XML descriptor dynamically.
The following variables can be used in your iWidget XML descriptor. These variables will be substituted automatically with the real URL of the component.Typically, you might want to use these variables in an ItemSet to get the value in the JavaScript™ code of your widget.  


Component   Variable  
Activities   {activities}  
Blogs   {blogs}  
Dogear   {dogear}  
Profiles   {profiles}  
Communities   {communities}  
Homepage   {homepage}  
Wikis   {wikis}  
Files {files}  
Real XML file path   {widgetContextRoot}  
For example  


<iw:itemSet id="feeds">

        <iw:item id="profiles" value="{profiles}/atom/profile.do"/>

        <iw:item id="activities" value="{activities}/service/atom2/everything"/>

        <iw:item id="dogear" value="{dogear}/atom/inbox?ps=10"/>

</iw:itemSet>

 

will be substituted with the following code  

<iw:itemSet id="feeds">

        <iw:item id="profiles" value="http://profiles.tap.ibm.com/profiles/atom/profile.do?"/>

        <iw:item id="activities" value="http://activities.tap.ibm.com/activities/service/atom2/everything"/>

        <iw:item id="dogear" value="http://dogear.tap.ibm.com/dogear/atom/inbox?ps=10"/>

</iw:itemSet>

 


Widget action title bar and modes  
A set of actions is associated with each widget in the Home page. The end-user can interact with the actions using a drop-down list that can be opened from the title bar of the widget.  

Widget action menu
   
The drop-down list containing the actions is built automatically by the Home page and includes the following actions.  
  • 2 types of actions display for all widgets:  
  • Remove - this action closes the widget and returns it to the widget palette.  
  • Move - a set of move actions for moving the widget to rearrange the layout of the page.
  • 2 additional actions display depending on the actions supported by the widget:  
  • Edit - displays edit preferences for the widget, if supported.
  • Help - displays help documentation, if provided.



The Home page runtime determines which actions to display, depending on the modes declared in the XML definition of the widget in the supportedModes attribute of the XML descriptor.
   
The following example defines the Edit and Help modes in the supportedModes attribute:
 

<iw:iwidget name="helloWorld" xmlns:iw="http://www.ibm.com/xmlns/prod/iWidget"

      iScope="HelloWorldWidgetClass" supportedModes="view edit help">


   
When the user selects the Edit or Help actions in the drop-down list, the standard predefined onModeChanged iEvent is fired against the iWidget with the following payload: {"newMode": "edit"} (resp. help)  

As a result, the iWidget framework loads the appropriat e markup for this mode automatically (iw:content mode="edit" or "help") and calls a method named “onedit” (resp. “onhelp”) on the iScope of your iWidget, if such a method is defined. This is typically the place to include custom code that is executed after disp laying the new markup of the mode.  

Note: The iWidget developer is responsible for providing a way to return to the normal (or any other) view for the edit/help view. For example, this can be done by publishing the onModeChanged event from the code of the widget using the following code:
this.iContext.iEvents.fireEvent("onModeChanged", null, "{newMode: 'view'}");  
 
Persisting widget parameters across user sessions  
In the Home page, preferences are persisted on a per-user and per-widget basis.  
   
For more information on persisting widget parameters across user sessions, see "Persisting widget preferences using managed itemSets" in Common iWidget support in Lotus Connections.  
 


Parent topic  
Lotus Connections iWidget Development Guide  
   
Related topics  
iWidget Overview  
Common iWidget support in Lotus Connections  


iWidget support in Profiles and Communities  
Best practices for iWidget development  
   
   
Authors: Vincent Burckhardt and Ronny Pena  

expanded Article information
collapsed Article information
Category:
Customization, Using Home Page, Widgets,
Tags:
2.5, iWidget, customizing, home_page

This Version: Version 43 November 12, 2009 8:58:15 AM by Duinseach Carey  IBMer

expanded Attachments (3)
collapsed Attachments (3)

 


File TypeSizeFile NameCreated On
image/x-png 24 KB updates_tab.PNG 7/7/09 11:03 AM
image/x-png 34 KB my_page_tab.PNG 7/7/09 11:03 AM
image/x-png 9 KB widget_menu.PNG 7/7/09 11:03 AM
expanded Versions (43)
collapsed Versions (43)
Version Comparison     
Version Date Changed by               Summary of changes
This version (43) Nov 12, 2009 8:58:15 AM Duinseach Carey  
42 Aug 29, 2009 1:26:58 AM Dana Liburdi  
41 Aug 29, 2009 12:24:24 AM Dana Liburdi  
40 Aug 11, 2009 1:55:55 PM Paddy Barrett  
39 Aug 11, 2009 8:15:29 AM Duinseach Carey  
38 Aug 11, 2009 8:03:45 AM Duinseach Carey  
37 Aug 11, 2009 6:54:16 AM Duinseach Carey  
36 Aug 11, 2009 6:53:08 AM Duinseach Carey  
35 Aug 11, 2009 6:50:26 AM Duinseach Carey  
34 Aug 11, 2009 6:47:23 AM Duinseach Carey  
33 Aug 11, 2009 6:45:59 AM Duinseach Carey  
32 Aug 11, 2009 6:44:53 AM Duinseach Carey  
31 Aug 11, 2009 6:43:26 AM Duinseach Carey  
30 Aug 11, 2009 6:39:09 AM Duinseach Carey  
29 Aug 11, 2009 6:34:31 AM Duinseach Carey  
28 Aug 11, 2009 6:33:13 AM Duinseach Carey  
27 Aug 11, 2009 6:31:14 AM Duinseach Carey  
26 Aug 11, 2009 6:30:02 AM Duinseach Carey  
25 Aug 11, 2009 6:29:02 AM Duinseach Carey  
24 Aug 11, 2009 6:27:18 AM Duinseach Carey  
23 Aug 11, 2009 6:25:49 AM Duinseach Carey  
22 Aug 11, 2009 6:24:51 AM Duinseach Carey  
21 Aug 11, 2009 6:23:52 AM Duinseach Carey  
20 Aug 11, 2009 6:21:08 AM Duinseach Carey  
19 Aug 11, 2009 6:20:30 AM Duinseach Carey  
18 Aug 11, 2009 6:18:31 AM Duinseach Carey  
17 Aug 11, 2009 6:11:41 AM Duinseach Carey  
16 Aug 11, 2009 5:34:22 AM Duinseach Carey  
15 Aug 11, 2009 5:29:14 AM Duinseach Carey  
14 Jul 14, 2009 4:43:03 AM Duinseach Carey  
13 Jul 14, 2009 4:41:50 AM Duinseach Carey  
12 Jul 14, 2009 4:39:24 AM Duinseach Carey  
11 Jul 14, 2009 4:37:50 AM Duinseach Carey  
10 Jul 14, 2009 4:35:31 AM Duinseach Carey  
9 Jul 14, 2009 4:34:48 AM Duinseach Carey  
8 Jul 14, 2009 3:50:37 AM Duinseach Carey  
6 Jul 9, 2009 8:32:00 AM Duinseach Carey  
5 Jul 9, 2009 8:30:52 AM Duinseach Carey  
4 Jul 7, 2009 11:19:04 AM Duinseach Carey  
4 Jul 7, 2009 11:19:04 AM Duinseach Carey  
3 Jul 7, 2009 11:13:55 AM Duinseach Carey  
2 Jul 7, 2009 11:08:18 AM Duinseach Carey  
1 Jul 7, 2009 11:03:19 AM Duinseach Carey  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use