Hi all,
I think the optimize for DynamicTitleServiceImpl have a problem.
If a portlet's Resources doesn't contain javax.portlet.title property,
the portlet will lost its title. For example, almost all the
Administrative portlet have this problem.

I have do a little bit investigated on it. I found the cause of this
is in LanguageImpl and LanguageSetImpl. The LanguageImpl's method:
setTitle(), setShortTitle() and setKeywords() will not set the value
into DefaultsResourceBundle object's defaultValues Map.

So can not use the LanguageSetImpl's createLanguage method like this:

createLanguage(lang.getLocale(), loadResourceBundle(lang.getLocale()),"","","");
language.setTitle(lang.getTitle());
language.setShortTitle(lang.getShortTitle());
language.setKeywords(StringUtils.join(lang.getKeywords(), ","));

Should be used like this:
createLanguage(lang.getLocale(), loadResourceBundle(lang.getLocale()),
lang.getTitle(), lang.getShortTitle(),
StringUtils.join(lang.getKeywords(), ","));

If it is necessary, I could raise a bug for this and provide a patch.

-James Liao

On 6/28/05, Wolfgang Miller-Reichling <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > --- 
> > portals/jetspeed-2/trunk/portal/src/java/org/apache/jetspeed/services/title/DynamicTitleServiceImpl.java
> >  (original)
> > +++ 
> > portals/jetspeed-2/trunk/portal/src/java/org/apache/jetspeed/services/title/DynamicTitleServiceImpl.java
> >  Mon Jun 27 22:40:09 2005
> >
> > +import com.sun.corba.se.internal.ior.ObjectId;
> > +
> >  public class DynamicTitleServiceImpl implements DynamicTitleService
> 
> The above import breaks the build, I guess it slipped in through an
> eclipse quick fix. Deleting it fixes the build.
> 
> Wolfgang
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to