Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 13628 invoked from network); 1 Apr 2010 16:08:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Apr 2010 16:08:49 -0000 Received: (qmail 90658 invoked by uid 500); 1 Apr 2010 16:08:49 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 90547 invoked by uid 500); 1 Apr 2010 16:08:48 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 90539 invoked by uid 99); 1 Apr 2010 16:08:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Apr 2010 16:08:48 +0000 X-ASF-Spam-Status: No, hits=-1786.8 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Apr 2010 16:08:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8165D234C4B2 for ; Thu, 1 Apr 2010 16:08:27 +0000 (UTC) Message-ID: <92591734.636891270138107528.JavaMail.jira@brutus.apache.org> Date: Thu, 1 Apr 2010 16:08:27 +0000 (UTC) From: "Woonsan Ko (JIRA)" To: jetspeed-dev@portals.apache.org Subject: [jira] Commented: (JS2-1094) Reloading resource bundle of portlet definition at runtime In-Reply-To: <879270395.99251262879934357.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 instead of . 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