[ 
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 4:58 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 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.

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

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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to