You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by ICM S CP guest 5 <IC...@icn.siemens.de> on 2001/09/27 18:24:15 UTC

RE: How to set portlet topic/title - Solution

I already found the solution.

These tags only work when you register your portlet by REF (reference) (e.g. URLs)

Paul:
If you store some <meta-info> for your .class portlet (in portlets.xreg), jetspeed will delete this information!

You register classes by using the keyword INSTANCE or ABSTRACT.

Your Portlet class is extended (derived) from AbstractPortlet. 
This class offers functions to set/get a title and a description (and many more) for your portlet. 

How I set the topic:
--------------------
...
  public void init () throws PortletException
  {
    setTitle("myPortlet");
    super.init();
  }
...


This works fine for my web-pane and wml output - nevertheless, the PortletBrowser doesn't show this information.

BTW: The portlet title is used as the anchor name (wml output) so there should be a way to change the title external - Why: if you wanna show your portal in different languages, you have to change the source-code and recompile your class every time.

So far,

Andreas K.





-----Original Message-----
From: ICM S CP guest 5 [mailto:ICM-S-CP.guest-5@icn.siemens.de]
Sent: Donnerstag, 27. September 2001 14:20
To: jetspeed-user@jakarta.apache.org
Subject: How to set portlet topic/title


Hi,

does anybody know, how I can set the topic/title of a portlet?

What I already tried in portlets.xreg:

- added a title (<TITLE>my Portlet</TITLE>)
- added a topic (<TOPIC>my Portlet</TOPIC>)

but without success. 
Even the <DESCRIPTION> Tag isn't working.

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org