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


Search

Advanced Search

Categories

Tag Cloud

  • 6.0
  • 6.1
  • 6.1.0.1
  • 6.1.5
  • 7.0
  • 7.0.0.2
  • 8.0
  • actions
  • administrator
  • authoring
  • Banking template
  • best practices
  • blogs
  • builder
  • building a site
  • caching
  • catalog
  • Clickstream Engine
  • clusters
  • ConfigEngine tasks
  • content
  • customizing
  • databases
  • demo
  • deployment
  • deployment scenario
  • developer
  • developing
  • device class
  • elements
  • examples
  • Express
  • feature set
  • fix pack 2
  • Government to Business template
  • info center
  • information center
  • installation
  • installing
  • LDAP
  • Learning
  • libraries
  • LikeMinds Recommendation Engines
  • logging
  • mentors
  • message catalog
  • messages
  • migration
  • mobile
  • mobile devices
  • mobile experience
  • mobile experience 8.0
  • mobile theme
  • mobile webkit
  • MPA
  • multiplatform
  • pages
  • performance
  • personalization
  • planning
  • portal
  • Portal 6.1
  • Portal 8 theme
  • portlets
  • product doc
  • product documentation
  • projects
  • properties
  • Redbooks
  • Redbooks Wiki
  • remember me cookie
  • resources
  • REST
  • Retail Vendor template
  • rules
  • samples
  • search
  • security
  • sifters
  • sites
  • solutions catalog
  • syndication
  • test infrastructure
  • theme
  • theme optimization
  • topologies
  • troubleshooting
  • tutorials on personalization
  • video
  • wcm
  • web content
  • webkit
  • WebSphere Portal
  • WebSphere Portlet Factory
  • wikis
  • workflows
  • worksheet
  • XML configuration interface
  • z/os
  • zos
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 > Exceptional Web Experience for WebSphere Portal 7.0 > Integrating XPages into Portal using IWidgets
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Integrating XPages into Portal using IWidgets 

expanded Abstract
collapsed Abstract
This article describes how you create an XPage iwidget definition which allows you to register it in IBM Websphere Portal V7. It also describes how to wire the portlets so that they can send and receive data.
ShowTable of Contents
HideTable of Contents
  • 1 Prerequisites
  • 2 Set-up
  • 3 Creating XPage Component in your NSF
  • 4 Registering XPage IWidget
  • 5 Adding your XPage IWidget Portlet to a page
  • 6 Wiring your XPage Portlets

In this article I am going to cover how to configure your IBM WebSphere Portal V7 Server and XPage application so that you can surface XPages as IWidgets in IBM Websphere Portal V7. I will also show how to wire the XPage portlets together so that they can publish and subscribe to events. Using the following steps it allows you to take any XPage application and surface it in your Portal page.

Prerequisites


You will need to have installed IBM Websphere Portal 7.0.0.1 or 7.0.0.2
You will need to have IBM Domino 853FP1

Set-up


If your server is running, shut it down. Open the proxy-config.xml file which is used to allow you to connect to different hosts.

The file is normally located here in a windows based system-> C:\IBM\WebSphere\PortalServer\base\wp.proxy.config\installableApps\wp.proxy.config.ear\wp.proxy.config.war\WEB-INF\proxy-config.xml

For each server that you wish to communicate with you need to add the following. So in this case, our XPage application is located on the "http://yourDominoServer/*" server.


<proxy:policy url="http://yourDominoServer/*" acf="none" basic-auth-support="true">
		<proxy:actions>
			<proxy:method>GET</proxy:method>
			<proxy:method>HEAD</proxy:method>
			<proxy:method>POST</proxy:method>
			<proxy:method>DELETE</proxy:method>
			<proxy:method>PUT</proxy:method>
		</proxy:actions>
		<proxy:cookies>
			<proxy:cookie>LtpaToken</proxy:cookie>
			<proxy:cookie>LtpaToken2</proxy:cookie>
		</proxy:cookies>
		<proxy:headers>
			<proxy:header>User-Agent</proxy:header>
			<proxy:header>Accept*</proxy:header>
			<proxy:header>Content*</proxy:header>
			<proxy:header>Authorization*</proxy:header>
			<proxy:header>X-Method-Override</proxy:header>
			<proxy:header>Set-Cookie</proxy:header>
			<proxy:header>If-Modified-Since</proxy:header>
			<proxy:header>If-None-Match</proxy:header>
			<proxy:header>X-Server</proxy:header>
			<proxy:header>X-Update-Nonce</proxy:header>
			<proxy:header>X-Requested-With</proxy:header>
			<proxy:header>com.ibm.lotus.openajax.virtualhost</proxy:header>
			<proxy:header>com.ibm.lotus.openajax.virtualport</proxy:header>
		</proxy:headers>
	</proxy:policy>


I have allowed all types of requests but you could restrict requests as per the parameters above.

For more on the proxy-config.xml file see this link

Restart your portal server

Creating XPage Component in your NSF


In your XPage application, you will need to create a component which contains the information which is used as the basis to create the IWidget definition. You will find a description of how to create a component in a related xpages article here

For registering your IWidget, you need to add the url to the XPages iWidget. This will be the name of the component from the database with the iWidget suffix from your Domino server - i.e. the Domino Server name plus the Domino Application NSF name plus the name of the Component plus IWidget. For example, http://yourDominoServer/yourApp.nsf/yourComponentName.iwidget

And from the XPages Demo App we are going to use the 'xpagesDemoAppViewColumnPublish' component which will become - http://yourDominoServer/xpages.nsf/xpagesDemoAppViewColumnPublish.IWidget
You can verify that this iWidget url is correct by verifying it on a blank browser page
      Sample widget example
    If the iWidget URL fails you should get something like this returned...
    Widget url error

    Registering XPage IWidget



    Now that you have an IWidget URL that you can point to. You just need to run the following command to install it, a full list of properties for the "register-iwidget-definition" command are described here

    C:\IBM\WebSphere\wp_profile\ConfigEngine>ConfigEngine.bat register-iwidget-definition -DPortletUniqueName="UniqueName" -DIWidgetDefinition=http://yourserver.com/sample.nsf/sample.iwidget -DPortalAdminPwd=portalPassword-D
    WasPassword=wasPassword

    Adding your XPage IWidget Portlet to a page


    1. Go to Actions ->Edit Page
    Toolbar in Portal to Edit Page

    You will see this action bar appear, click Customize
    Customize toolbar in Portal to add Portlets

    2. Click All and choose the XPages IWidget portlet you have added by clicking on the +. Here we will add all the xpages demo portlets
    Add Portlets UI

    3. Click "Save & Exit"

    Your XPage IWidget Portlets should appear like below
    Add Portlets UI


    Wiring your XPage Portlets


    Next we will wire our portlets together. Sending information about a country when it is selected.

    To do this we need to go back to "Actions->Edit Page"
    Add Portlets UI

    Next click on the top right hand side of the portlet and a drop down menu will appear. Click "Edit Wiring"
    Add Portlets UI

    A new dialog will appear, click "Settings" and choose "Consider payload type only for match of sources and targets"
    Add Portlets UI

    Next choose "pubCountry1" as the content to send. Then choose XPages Receive Country widget as the widget to wire. There should be only one action available to wire which is "recCountry".
    Add Portlets UI

    Click "Done" and also "Save & Exit"

    Click on a country in the view and you will see the information is passed from one widget to another.
    Add Portlets UI

    expanded Article information
    collapsed Article information
    Category:
    Exceptional Web Experience for WebSphere Portal 7.0, Exceptional Web Experience for WebSphere Portal 7.0.0.2,
    Tags:
    xpages portal iwidget

    This Version: Version 6 February 2, 2012 9:04:26 AM by Padraic Edwards  IBMer

    expanded Attachments (11)
    collapsed Attachments (11)

     


    File TypeSizeFile NameCreated On
    image/jpeg 67 KB iwidget_add_portlets.jpg 1/26/12 8:21 AM
    image/jpeg 53 KB iwidget_customize_toolbar.jpg 1/26/12 8:21 AM
    image/jpeg 15 KB iwidget_edit_page_portal.jpg 1/26/12 8:21 AM
    image/jpeg 24 KB iwidget_error.jpg 1/26/12 8:21 AM
    image/jpeg 53 KB iwidget_portal_xpages_page.jpg 1/26/12 8:21 AM
    image/jpeg 100 KB iwidget_settings_wiring_dialog.jpg 1/26/12 8:21 AM
    image/jpeg 208 KB iwidget_url.jpg 1/26/12 8:21 AM
    image/jpeg 96 KB iwidget_wired_sample.jpg 1/26/12 8:21 AM
    image/jpeg 105 KB iwidget_wiring_dialog_complete.jpg 1/26/12 8:21 AM
    image/jpeg 33 KB iwidget_wiring_drop_down.jpg 1/26/12 8:21 AM
    image/jpeg 112 KB iwidget_xpage_portlets.jpg 1/26/12 8:21 AM
    expanded Versions (6)
    collapsed Versions (6)
    Version Comparison     
    Version Date Changed by               Summary of changes
    This version (6) Feb 2, 2012 9:04:26 AM Padraic Edwards  
    4 Jan 31, 2012 6:00:57 AM Padraic Edwards  
    3 Jan 26, 2012 9:14:17 AM Padraic Edwards  
    2 Jan 26, 2012 9:08:40 AM Padraic Edwards  
    1 Jan 26, 2012 8:53:50 AM Padraic Edwards  
    1 Jan 26, 2012 8:59:32 AM Padraic Edwards  
    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