You've got a good point here. We see similar requirements for future
versions of JetSpeed. One thing we also should consider is the scenario,
where a user selects a language during registration or selfcare; in that
case the language to use would have to be obtained from a user profile
object.

Currently, JetSpeed displays the title string specified in the user's PSML
file (AbstractPortlet.getTitle()). Changing the signature of that method to
public String getTitle(RunData runData) would probably solve your problem,
but I think what we also need is a way to specify alternate titles for
different languages, so that AbstractPortlet.getTitle() can do something
like

return getPortletConfig().getMetainfo().getTitle(locale);

Best regards,

Thomas

Thomas Schaeck
IBM Pervasive Computing Division
Phone: +49-(0)7031-16-3479   e-mail: [EMAIL PROTECTED]
Address: IBM Deutschland Entwicklung GmbH,
Schoenaicher Str. 220, 71032 Boeblingen, Germany


[EMAIL PROTECTED] on 02.01.2001 23:59:36

Please respond to "JetSpeed" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Locale Specific Portlet Titles




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to write a portlet that will have a title that is
displayed as a locale sensitive string.  In other words, I want the
portlet title to be displayed in the locale specified in the
browser's Accept-Language header field.  Locale sensitive information
can be displayed in the getContent() method as this information is
available via the RunData object (ie:
RunData.getRequest().getLocale()).  The problem (as I see it) is that
there is no way to access the RunData object from within the
getTitle() method of a Portlet.

Can someone suggest an alternate way to accomplish this, or would
this require an API change in the Portlet interface.

Thanks in advance,
- - Tim Taylor

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBOlJcQn0GulZt1ukUEQK+DQCg/ckFP2Xo38m19vOaFTSJ+/swhrUAoL8X
ArYvoW3PJcOZYxCEb7fTmy7E
=Xyk9
-----END PGP SIGNATURE-----





--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to