Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Problem with Application Message Localization

$
0
0
SmartClient_v90p_2013-09-09_Evaluation
browser Chrome
------------
formMessages.properties
name=MyApp
changeLocale=Change locale
-------------
test_example.jsp
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/iscTaglib.xml" prefix="isomorphic" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
<isomorphic:loadISC skin="Enterprise" />
<fmt:setLocale value="en"/>
<fmt:setBundle basename="my.formMessages" />
</head>

<body>
<p><fmt:message key='changeLocale'/> </p>
<SCRIPT>
isc.Button.create({ title: <fmt:message key='changeLocale'/> });
</SCRIPT>
</body>
</html>

---------------
<p><fmt:message key='changeLocale'/> </p>
This part works properly
---------------
PROBLEM:
<SCRIPT>
isc.Button.create({ title: <fmt:message key='changeLocale'/> });
</SCRIPT>
This part doesn't show result.
Doesn't show errors.
--------------
server log:
=== 2013-09-13 11:41:35,076 [sor2] INFO RequestContext - URL: '/my/test_example.jsp', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36': Safari with Accept-Encoding header
=== 2013-09-13 11:41:35,080 [sor2] INFO JSSyntaxScannerFilter - /my/test_example.jsp: scanning <script> tags in html output
=== 2013-09-13 11:41:35,082 [sor2] INFO Compression - /my/test_example.jsp: 1324 -> 345 bytes
=== 2013-09-13 11:41:43,043 [sor2] INFO RequestContext - URL: '/isomorphic/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36': Safari with Accept-Encoding header

Viewing all articles
Browse latest Browse all 4756

Trending Articles