portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Issue Comment Edited: (JS2-1094) Reloading resource bundle of portlet definition at runtime
Date Wed, 03 Mar 2010 17:50:27 GMT

    [ https://issues.apache.org/jira/browse/JS2-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840727#action_12840727
] 

Woonsan Ko edited comment on JS2-1094 at 3/3/10 5:50 PM:
---------------------------------------------------------

Fixed by implementing a reloadable property resource bundle class and levering it in portlet
factory.

Administrator can reload resource bundles for a portlet application or a portlet definition
in Portlet Application Manager portlet. In each detail tab pane, you can find "Reload" button
for resource bundle field.

By the way, I'd like to mention that JSTL fmt:setBundle tag does not use portletConfig.getResourceBundle().
Instead, it invokes ResourceBundle.getResourceBundle() directly, which cannot be controlled
in Jetspeed.
So, if you want to have the portlet resource bundle reloaded in admin UI, then the portlet
should have access to "portletConfig" object like javax.portlet.PortletConfig#getResourceBundle(renderRequest.getLocale()).

Also, there's one limitation:
The portlet info keys ("javax.portlet.title", "javax.porlet.short-title" and "javax.portlet.keywords")
are never reloaded because those must be properly registered during deployment time.
So, if you want to reload those, you must re-deploy the portlet application.

      was (Author: woon_san):
    Fixed by implementing a reloadable property resource bundle class and levering it in portlet
factory.

Administrator can reload resource bundles for a portlet application or a portlet definition
in Portlet Application Manager portlet. In each detail tab pane, you can find "Reload" button
for resource bundle field.

By the way, I'd like to mention that JSTL fmt:setBundle tag caches the resource bundle. So,
if you want to have the portlet resource bundle reloaded in admin UI, then the portlet should
have access to "portletConfig" object like javax.portlet.PortletConfig#getResourceBundle(renderRequest.getLocale()).

Also, there's one limitation:
The portlet info keys ("javax.portlet.title", "javax.porlet.short-title" and "javax.portlet.keywords")
are never reloaded because those must be properly registered during deployment time.
So, if you want to reload those, you must re-deploy the portlet application.
  
> Reloading resource bundle of portlet definition at runtime
> ----------------------------------------------------------
>
>                 Key: JS2-1094
>                 URL: https://issues.apache.org/jira/browse/JS2-1094
>             Project: Jetspeed 2
>          Issue Type: Wish
>          Components: Portlet Registry
>    Affects Versions: 2.2.0
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>             Fix For: 2.2.1
>
>
> Currently, the resource bundle defined in the portlet descriptor for a portlet definition
cannot be reloaded at runtime.
> It would be great if it is possible in admin UI.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message