gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Grid problem if set locale="th" #888

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1.set tag <sj:head locale="th" jqueryui="true"  jquerytheme="start" /> in tag 
<head> 
2.use <sjg:grid> 
3.set tag <sjg:gridColumn> set attribute  formatter="currency" for show price

What is the expected output? What do you see instead?
gridColumn is set attribute  formatter="currency"  and sum records  not show 
comma.
eg. 4,000.00 -------> 4 000.00    see image in attach file.
if set <sj:head locale="en" is no problem.

Which struts2 version?
2.3.4.1

Which struts2-jquery plugin version?
3.3.3

Please provide any additional information below.

 CODE

<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- <link rel="stylesheet" type="text/css" href="CSS/cssreset.css"> -->
<title>Insert title here</title>
<sj:head locale="th" jqueryui="true"  jquerytheme="start" />
</head>
<body>

    <s:url id="remoteurl" action="productListJson"/>
    <sjg:grid
        id="gridedittable"
        caption="Customer Examples"
        dataType="json"
        href="%{remoteurl}"
        pager="true"
        gridModel="productList"
        rowList="10,15,20"
        rowNum="15"
        rownumbers="true"
        viewrecords="true"
    >
        <sjg:gridColumn frozen="true"  name="id" index="id" title="ID" sortable="false"/>
        <sjg:gridColumn  name="name" index="name" title="Name" sortable="true"/>
        <sjg:gridColumn name="amount" index="amount" title="Amount" sortable="false"/>
        <sjg:gridColumn name="price" index="price" title="price" formatter="currency" sortable="false"/>
        <sjg:gridColumn name="detail" index="detail" title="detail" sortable="false"/>
    </sjg:grid> 
</body>
</html>

Original issue reported on code.google.com by yeamg...@gmail.com on 12 Sep 2012 at 4:45

Attachments:

GoogleCodeExporter commented 9 years ago
The empty space is defined in the jqgrid local file.

https://github.com/tonytomov/jqGrid/blob/master/js/i18n/grid.locale-th.js

Please open an Issue in the jqGrid Issue Tracker and after a new release od 
jqgrid the Fix would be included here.

https://github.com/tonytomov/jqGrid/issues

Original comment by johgep on 14 Sep 2012 at 3:20

GoogleCodeExporter commented 9 years ago
Thank you Johgep.

Original comment by yeamg...@gmail.com on 17 Sep 2012 at 9:09