=?ISO-8859-1?Q?Not_showing_=3FShow_Person_Record=3F_&_=3FShow _Organiz?==?ISO-8859-1?Q?ation_View=3F_as_default_menu_items_in_person_ menu?= - Websphere

This is a discussion on =?ISO-8859-1?Q?Not_showing_=3FShow_Person_Record=3F_&_=3FShow _Organiz?==?ISO-8859-1?Q?ation_View=3F_as_default_menu_items_in_person_ menu?= - Websphere ; Hi All, I am using person tag to implement people awareness functionality. I used the code given below. Line 1: This is used to include people.tld to enable person tag in portlets. Line 2: erson value="UID=005789,CN=USERS,DC=CORP,DC=COM" valueType="WMMID" displayName="testName"/> ?testName? is ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: =?ISO-8859-1?Q?Not_showing_=3FShow_Person_Record=3F_&_=3FShow _Organiz?==?ISO-8859-1?Q?ation_View=3F_as_default_menu_items_in_person_ menu?=

  1. =?ISO-8859-1?Q?Not_showing_=3FShow_Person_Record=3F_&_=3FShow _Organiz?==?ISO-8859-1?Q?ation_View=3F_as_default_menu_items_in_person_ menu?=

    Hi All,

    I am using person tag to implement people awareness functionality. I used the code given below.

    Line 1: <%@taglib uri="/WEB-INF/tld/people.tld" prefix="pa"%>
    This is used to include people.tld to enable person tag in portlets.


    Line 2: erson value="UID=005789,CN=USERS,DC=CORP,DC=COM" valueType="WMMID" displayName="testName"/>

    ?testName? is display name.

    This is used to show a person link which display ?testName? as a hyperlink.

    When user clicks on ?testName?. It will display a menu containing default menu items. These are ?Display name?, ?Online Status? & ?Send E-Mail?.

    It is not showing ?Show Person Record? & ?Show Organization View? as default menu items.

    I want to show these two menu items in person dropdown menu. I have tested this with all combinations of person tag. I used WMMID & LDAPDN for valueType.
    Its not identifying or not retrieving data from WMM or LDAP.

    I found one document which indicates that menu will display ?Show Person Record? only if the People Finder portlet is on the current page and ?Show in Organization View? only in People Finder portlet.

    In people finder portlet its showing all menu item. we can configure this portlet to show all menu items. In our case we just want to use person tag, not complete portlet.

    Please reply with any suggestion.

    Thanks
    Ram kishor


  2. Re: Not showing ?Show Person Record? & ?Show Organization View? asdefault menu items in person menu

    I have done some testing here in our lab with a simple custom portlet that I wrote using the person tag. I wanted to share with you what I found during my testing. Here is my jsp file:

    <%@ page session="false" contentType="text/html" import="java.util.*, person_tag_ibmtest.*"%>
    <%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>
    <%@ taglib uri="/WEB-INF/tld/people.tld" prefix="pa"%>


    <%
    Person_tag_ibmtestPortletSessionBean sessionBean = (Person_tag_ibmtestPortletSessionBean)portletReque st.getPortletSession().getAttribute(Person_tag_ibm testPortlet.SESSION_BEAN);
    %>



    Person Tag test


    This is a sample person tag.
    erson value="uid=ccruz,cn=users,dc=ibm,dc=com" valueType="LDAPDN" displayName="Christina Cruz" />



    At first, neither menu item appeared with my test portlet either. After doing some investigation and working with development, we found that the "View Person Record" menu item will not work in a JSR 168 compliant portlet. When I changed my portlet to use the IBM Portlet API, the "View Person Record" menu item appeared. This is a known limitation which has been addressed in WebSphere Portal 6.

    Do you know if your custom portlet is a JSR 168 compliant portlet? In order to verify that you are seeing the same problem, we can turn on trace and look for the error. If you turn on the following trace:
    com.ibm.websphere.wmm.*=all=enabled:com.ibm.ws.wmm .*=all=enabled:WSMM=all=enabled:com.ibm.workplace. *=all=enabled:com.lotus.*=all=enabled:com.ibm.wkpl c.people.*=all=enabled

    you will see the following error:

    [2/20/07 13:00:18:016 EST] 642de88 tag > com.ibm.wkplc.people.tag.menuitems.ViewPersonRecor dMenuItem getMenuData(PageContext pageContext, Member id) parms = org.apache.jasper.runtime.PageContextImpl@595c9ec0 : memberType:0, memberIdentifier:[uid=ccruz,cn=users,dc=ibm,dc=com / 29c5ff5f-4ca3-4b0c-ae4b-71ae6e9387f6], parentMemberIdentifier:[cn=users,dc=ibm,dc=com / cn=users,dc=ibm,dc=com]
    {sn=sn:Cruz, cn=cn:Christina Cruz, ibm-primaryEmail=ibm-primaryEmail:Christina Cruz/ibm@ibm, persontagstname=persontagstname:Christina Cruz, uid=uid:ccruz, ibm-jobTitle=ibm-jobTitle:Software Engineer, telephoneNumber=telephoneNumber:404-487-6313, givenName=givenName:Christina, com.ibm.wkplc.people.person.exists.in.directory=co m.ibm.wkplc.people.person.exists.in.directory:com. ibm.wkplc.people.person.exists.in.directory}:
    [2/20/07 13:00:18:016 EST] 642de88 tag > com.ibm.wkplc.people.tag.menuitems.ViewPersonRecor dMenuItem getMenuData Entering getMenuData()...
    [2/20/07 13:00:18:016 EST] 642de88 tag > com.ibm.wkplc.people.tag.PersonTagUtil getPortalURL(PageContext pageContext, String pageContextId, String compositionNode, String contentNode, String portletState, String pacCheck, boolean setRequestId, boolean newWindow, String[] urlParamNames, String[] urlParamValues) parms = org.apache.jasper.runtime.PageContextImpl@595c9ec0 : com.ibm.wkplc.people.tag.menitems.ViewPersonRecord MenuItem.Url: lotus.workplace.hiddenpage.control.PeopleFinder: lotus.workplace.hiddenpage.PeopleFinder: Solo: true: false: [Ljava.lang.String;@374b1ef9: [Ljava.lang.String;@370d5ef9:
    [2/20/07 13:00:18:016 EST] 642de88 tag d Exception in getMenuData java.lang.ClassCastException: org.apache.pluto.core.impl.RenderRequestImpl
    [2/20/07 13:00:18:016 EST] 642de88 tag d menuData is null
    [2/20/07 13:00:18:016 EST] 642de88 tag > com.ibm.wkplc.people.tag.menuitems.ViewPersonRecor dMenuItem getMenuData Exiting getMenuData()...


    I was not able to get the ?Show Organization View? menu item to appear in my test portlet. After doing some investigation and working with development, we found that the ?Show Organization View? menu item only appears in the People Finder Portlet. You can verify this in the trace as well, see the following:

    [2/20/07 13:00:18:016 EST] 642de88 menuitems > com.ibm.wkplc.people.tag.menuitems.ViewOrganizatio nViewMenuItem getMenuData Entering getMenuData()...
    [2/20/07 13:00:18:016 EST] 642de88 menuitems > com.ibm.wkplc.people.tag.menuitems.ViewOrganizatio nViewMenuItem getMenuData Exiting getMenuData() from outside of PeopleFinder

    You will also notice that the ?Show Organization View? menu item doesn't appear in other portlets shipped with WebSphere Portal, such as the PIM Portlets. This is working as designed.

    So, in summary, I do believe you should be able to get the "View Person Record" menu item working if your custom portlet is using the IBM Portlet API. If your portlet is an IBM Portlet API portlet and it still doesn't show that menu item,

+ Reply to Thread