Portlet mode buttons don't show
Hi,
I've been trying to setup a company portal for several weeks now, all in all it is going pretty well, but one problem has got me stumped. When I add a portlet to the portal desktop no edit or help button is shown even if the correct portlet mode is declared in the portlet.xml. The portlet, and the buttons, work correctly in Pluto. I tried to add to portlet to different desktops, including the provided samples, but to no avail.
# 1
Make sure your portlet.xml includes the following "Supports" element:
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>EDIT</portlet-mode>
<portlet-mode>HELP</portlet-mode>
</supports>
Also, make sure that you're viewing the portlet after you have logged in with a valid user account. The initial pages you see in the portal are for the anonymous user access which has a read only template. This prevents users from changing portlet modes because interaction with portlets is typically prevented by anonymous users.
HTH,
Jim
# 2
My portlet contains the correct portlet modes in the portlet.xml. When I deploy the portlet on Pluto everything works just fine. If I copy the portlet code, change only the portlet name and the portlet class and deploy this in PS7, everything is OK.
I've tested the portlets by adding them to the portlets sample page of the developer sample portal (after creating a user and logging in). So read-only shouldn't be a problem.
Another related problem I have is that, later I have to add these portlets to a menu container I created myself. The problem there is that I use a customised tabcontainer and that it only displays one portlet at a time, but without the buttons. Is there a way to create the edit/help links myself. I tried to replicate the code from single.jsp, but can't get it to work correctly.