The bar that contains 'content' and 'layout' links is gone...

Hi, I'm developing portlets on Sun Java System Portal Server 6. I developed some new portlets and I also changed the tab.jsp file in the JSPTabContainerProvider channel for my desktop type.

Now I see that I don't have the 'layout' and 'content' links and the bar that they were in anymore. I see they are defined in the contentlayout.template file. But I don't see how that file was used before I started making changes.

So my question is: How (and where) do I have to make modifications to include this contentlayout.template file in order to have that bar again in my portal desktop?

greets,

timvissers

[650 byte] By [timvissers] at [2007-11-25 20:45:10]
# 1

It looks like you are confusing a couple of different technologies. Here are some suggestions.

1) There are two fundamental types of containers available. One is JSP based with files ending with ".jsp". The other is the older template style with files ending with ".template". These two types of containers are separate and there is not a way for a .jsp file to include a .template file (or vice versa).

2) The Content & Layout menu items are actually part of the Table Container. I suggest that you double check to make sure that you have not inadvertently made a change to one of the file is JSPTableContainer.

3) It is a good practice to use a custom desktop type. You can create a custom desktop by making a copy of the /etc/opt/SUNWps/desktop/sampleportal, anonymous, and default directories. This makes it easier to isolate your changes and will protect your customizations from getting overwritten by an install of a new release of the product.

4) Make a backup of the /etc/opt/SUNWps/desktop directory immediately after you install the product. This way you always have a snapshot of the templates that were delivered out of the box in case you need to refer to the original templates that shipped with the distribution.

HTH,

Jim

jimfaut at 2007-7-4 18:27:45 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2
1) I understand.2) doh, I just found out that at some time I started using tabcontainers for testing where I actually needed tablecontainers.Thanks alot for this valuable information.tim
timvissers at 2007-7-4 18:27:45 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3

I have a related question for this:

my layout link e.g. is http://pportal.myownportal.com:8080/portal/dt?action=edit&provider=JSPLayou tContainer&container=myEvents

This link seems to work fine, but when I want to choose a new layout and click 'finish' it gives me a " A serious error has occured in the Desktop. This may have been caused by a mis-configuration on the server."

In my desktop.debug I get an "com.sun.portal.desktop.DesktopException: attempt to edit non-editable channel=JSPContentContainer".

What have I done wrong?

timvissers at 2007-7-4 18:27:45 > top of Java-index,Web & Directory Servers,Portal Servers...
# 4
1) Check the value for isEditable on your JSPLayoutContainer.2) Are you using a bookmark for this? If so, you must be logged in to the portal in order to change the layout. The anonymous user does not normally have priviledges to edit layout settings.
jimfaut at 2007-7-4 18:27:45 > top of Java-index,Web & Directory Servers,Portal Servers...
# 5
>> you must be logged in to the portal doh, i made my employeeportal anonymous for testing so I didn't have to login.thanks.
timvissers at 2007-7-4 18:27:45 > top of Java-index,Web & Directory Servers,Portal Servers...