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] Commented: (JS2-1094) Reloading resource bundle of portlet definition at runtime
Date Thu, 01 Apr 2010 16:08:27 GMT

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

Woonsan Ko commented on JS2-1094:
---------------------------------

If you wish to use the comment text you have typed (shown below), please copy it now. This
text will be lost when you leave this screen.
A support tag to set localization context based on portlet config is added. 
Please see http://issues.apache.org/jira/browse/APA-34 for detail. 

Here's one test scenario to test resource bundle reloading with the demo::PickANumberPortlet
example: 

(1) Navigate to the default page (http://localhost:8080/jetspeed/ui/default-page.psml) of
the portal which contains demo::PickANumberPortlet. 
     You can see the button, "Guess" or other localized string. 
(2) Open the resource bundle properties files in /demo/WEB-INF/classes/org/apache/portals/applications/demo/simple/resources/
folder. 
     For example, you can open PickANumberResources_en.properties and edit the the property
like this: 

         pickanumber.label.guess=Guess a number 

(3) Navigate to http://localhost:8080/jetspeed/ui/Administrative/pam.psml 
     And, select demo application and PickANumber portlet ("Pick a number game"). 
(4) Find the "PortletDetailsManager - PickANumberPortlet" portlet window. 
      In the "Details" tab, you can find the "Resource" row and the "Reload" button. 
      Click "Reload" and continue. 
(5) Navigate to the default page (http://localhost:8080/jetspeed/ui/default-page.psml) again.

     Confirm that the label of the button of PickANumberPortlet changed to "Guess a number".


Additional Note: If you want to leverage this feature with JSTL fmt tag in jsp pages, you
should use <fmt-portlet:setBundle /> instead of <fmt:setBundle .../>. Please see
the example in /demo/WEB-INF/demo/simple/PickANumber.jsp. 

Cheers, Woonsan

> 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