Display XPages in IBM Connections in Full Page Mode

Niklas Heidloff | 07:19:55 AM May 9 2012
I've worked recently on integrating some XPages into IBM Connections. Last year I created a project on OpenNTF that shows how to do this. Essentially the XPages need to be wrapped in iWidgets (xml files) so that they can be added to the users' home pages and the profiles and community pages.

When I did this again now I figured a problem when displaying the XPages in full page mode. Below is a workaround for how to get it working.

Just to give you some more context: On the community overview pages widgets are displayed in "view" mode with less real estate.



When you click on an entry in the left navigator the pages are opened in "fullpage" mode.



In order to make this work you need to define your own iWidget xml descriptor. The version generated by Designer does not add the full page mode. Here is a snippet of an iWidget descriptor with both modes.



In order for the XPages runtime to understand the fullpage mode you need to add three lines of code in domjs/dojo-1.4.3/ibm/xsp/widget/layout/xspScopeClass.js.



Update:
Please read this to learn how to resize the iFrame with the XPage automatically when browser window sizes change.


  • Comments [4]


1Keith Taylor  5/9/2012 2:00:45 PM  Display XPages in IBM Connections in Full Page Mode

This is exactly what I need. Thank you Niklas!



2Niklas Heidloff  5/9/2012 2:04:04 PM  Display XPages in IBM Connections in Full Page Mode

Keith, I played some more with this today and there is another issue. The XPage isn't resized automatically since running in an iFrame. I wrote some code to fix this and will blog it tomorrow.



3Sean Cull  5/9/2012 6:11:11 PM  Display XPages in IBM Connections in Full Page Mode

Can this be done with SAAS Connections ( IBM Smart Cloud ) or just on premises ?



4Niklas Heidloff  5/9/2012 6:45:01 PM  Display XPages in IBM Connections in Full Page Mode

Sean, do you refer to a cloud instance to which you have full access or an existing installation?

You need to change an XML file on disc to deploy the iWidget. So you need file system access.

The quick start image on the IBM Smart Cloud ({ Link } ) supports access to the file system, e.g. via VNC. So that works.

What doesn't work are existing installations like Bleedyellow, Greenhouse, Euluc, etc. where you don't have file system access to.




Discussion for this entry is now closed.