WebSphere Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows


Providing online awareness for a custom portlet

In a custom portlet, you can provide online awareness for users of the portlet.

Online awareness is provided by using the person tag of the Collaborative Services API.

Perform the following steps to provide awareness for a custom portlet:

  1. Add the following line to your page:
    <%@taglib uri="/WEB-INF/tld/people.tld"prefix="pa"%>
  2. Include a statement in your page similar to the following line:
    <pa:person value="CN=John Smith,OU=SALES,O=ACME" 
    valueType="LDAPDN" displayName="John Smith" />

    The displayName attribute is optional.

    The supported types for valueType are:

    • EMAIL
    • LDAPDN
    • MEMBERDN
    • WMMID

In the following example, the bolded portions interact with Collaborative Services. The first % statement is a reference to the Collaborative Services tag library. The bold statement uses the Collaborative Services person tag to display a person's name as a live link.

<%@taglib uri="/WEB-INF/tld/people.tld" prefix="pa" %>
<%@taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>
portletAPO:init
Hello example
<h1>Collaborative Services Hello JSP</h1>
<br />
<h2>Hello,<pa:person value="wpsadmin@acme.com" valueType="EMAIL" /> !</h2>
Related tasks
Customizing person menu actions
Logging for Collaborative Services

Library | Support | Terms of use |

Last updated: Wednesday, February 20, 2008 10:51am EST

Copyright IBM Corporation 2000, 2008. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)