Author: thomas.heute(a)jboss.com
Date: 2010-02-11 15:32:33 -0500 (Thu, 11 Feb 2010)
New Revision: 1648
Modified:
portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIItemSelector.gtmpl
Log:
GTNPORTAL-632: UIItemSelector defaults to 'label' when trying to display something
that hasn't been localized
Modified: portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIItemSelector.gtmpl
===================================================================
---
portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIItemSelector.gtmpl 2010-02-11
20:14:24 UTC (rev 1647)
+++
portal/trunk/web/portal/src/main/webapp/groovy/webui/core/UIItemSelector.gtmpl 2010-02-11
20:32:33 UTC (rev 1648)
@@ -26,7 +26,19 @@
<div class="$itemSelected" onmouseover="$onMouseOver"
onmouseout="$onMouseOut" onclick="$onClick">
<div class="LeftItem">
<div class="RightItem">
- <div class="ItemTitle"><%=_ctx.appRes(uicontainer.getName() +
"." + category.getName() + ".label")%></div>
+ <%
+ String label = null;
+ try
+ {
+ ResourceBundle res =
_ctx.getRequestContext().getApplicationResourceBundle();
+ label = res.getString(uicontainer.getName() + "." +
category.getName() + ".label");
+ }
+ catch (MissingResourceException ex)
+ {
+ label = category.getName();
+ }
+ %>
+ <div class="ItemTitle"><%=label%></div>
</div>
</div>
</div>
Show replies by date