Can't load remote data from Spring MVC RestControllerdojo toolkit 1.7.1: xhrget does not allow complete rendering of DataGrid in StackContainer?easyui two combo boxes dynamic data loadEasyUI - XML data load into datagridjquery easyui loading components via ajax (not data, real ui components)How to load XML data in jQueryEasyUI treegridjquery easyui data grid editor for combo box not loading with grailsHow to get all data from easyui datagridJson data not loading on easyui gridhow to load data for all comboboxes one time in javascript?Jquery easyui datagrid load data from PHP function
What does this symbol on the box of power supply mean?
Understanding Implicit Delimiters/Terminators
Purpose and meaning of "dabei" in the sentence "sehen Sie dabei nicht ins Bildlexikon"?
USPS Back Room - Trespassing?
Is Jon Snow the last of his House?
Imitating a conveyor belt in `TikZ`
Pirate democracy at its finest
Why does Mjolnir fall down in Age of Ultron but not in Endgame?
Boss wants me to falsify a report. How should I document this unethical demand?
Why were helmets and other body armour not commonplace in the 1800s?
NIntegrate doesn't evaluate
Teacher help me explain this to my students
Are these reasonable traits for someone with autism?
Why is this Simple Puzzle impossible to solve?
High resistance, no current. What's the point of a potential then?
Popcorn is the only acceptable snack to consume while watching a movie
Is it rude to call a professor by their last name with no prefix in a non-academic setting?
Do photons bend spacetime or not?
Why does this if-statement combining assignment and an equality check return true?
What could a self-sustaining lunar colony slowly lose that would ultimately prove fatal?
What is the object moving across the ceiling in this stock footage?
Have 1.5% of all nuclear reactors ever built melted down?
Where's this lookout in Nova Scotia?
Gladys goes shopping
Can't load remote data from Spring MVC RestController
dojo toolkit 1.7.1: xhrget does not allow complete rendering of DataGrid in StackContainer?easyui two combo boxes dynamic data loadEasyUI - XML data load into datagridjquery easyui loading components via ajax (not data, real ui components)How to load XML data in jQueryEasyUI treegridjquery easyui data grid editor for combo box not loading with grailsHow to get all data from easyui datagridJson data not loading on easyui gridhow to load data for all comboboxes one time in javascript?Jquery easyui datagrid load data from PHP function
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm using DataGrid to present data from a Spring MVC RestController. But, when I set the Controller path in the DataGrid URL parameter, then no data is loaded into the DataGrid table. I've tested the JSON data from server successfully. So I wonder what's wrong with my code?. Please, Help.
I have tried using a JSON file containing the server response data. The DataGrid shows all my records successfully. But, when I use the controller path, then no data is shown.
Rest Controller:
@CrossOrigin(origins = "*")
@RestController
public class CiudadanoController
@Autowired
@Qualifier("persistenceFacade")
private PersistenciaFacade persistenceFacade;
@RequestMapping(value="/consultarCiudadanos.do")
@ResponseBody
public String consultarCiudadanos()
List<CiudadanoDTO> result = new ArrayList<CiudadanoDTO>();
result.addAll(persistenceFacade.consultarCiudadanos());
Gson parser = new GsonBuilder().create();
DataGridResultDTO rows = new DataGridResultDTO();
rows.setTotal(result.size());
rows.setRows(result);
return parser.toJson(rows);
public PersistenciaFacade getPersistenceFacade()
return persistenceFacade;
public void setPersistenceFacade(PersistenciaFacade persistenceFacade)
this.persistenceFacade = persistenceFacade;
JSP Page:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/gray/easyui.css">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/mobile.css">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/icon.css">
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/jquery.min.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/main.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/jquery.easyui.min.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/loadingoverlay.min.js"></script>
<title>Login</title>
</head>
<body>
<div class="easyui-panel">
<header>
<div class="m-toolbar">
<span class="m-title">Ciudadanos Registrados</span>
</div>
</header>
<div data-options="region:'west',split:true" style="width: 100%;">
<table id="ciudadanosTable" title="Ciudadanos" class="easyui-datagrid"
url="<%=request.getContextPath()%>/consultarCiudadanos.do"
scrollbarSize="1" pagination="true" method="get" autoLoad="true"
fitColumns="true" fit="true" singleSelect="true" >
<thead>
<tr>
<th data-options="field:'cedula',width:80">CC</th>
<th data-options="field:'nombre',width:100">Nombre</th>
<th data-options="field:'direccion',width:80,align:'right'">Direccion</th>
</tr>
</thead>
</table>
</div>
</div>
</body>
</html>
I expect the DataGrid to contain the RestController data. I'll appreciate any help.
Thank you.
datagrid jquery-easyui
add a comment |
I'm using DataGrid to present data from a Spring MVC RestController. But, when I set the Controller path in the DataGrid URL parameter, then no data is loaded into the DataGrid table. I've tested the JSON data from server successfully. So I wonder what's wrong with my code?. Please, Help.
I have tried using a JSON file containing the server response data. The DataGrid shows all my records successfully. But, when I use the controller path, then no data is shown.
Rest Controller:
@CrossOrigin(origins = "*")
@RestController
public class CiudadanoController
@Autowired
@Qualifier("persistenceFacade")
private PersistenciaFacade persistenceFacade;
@RequestMapping(value="/consultarCiudadanos.do")
@ResponseBody
public String consultarCiudadanos()
List<CiudadanoDTO> result = new ArrayList<CiudadanoDTO>();
result.addAll(persistenceFacade.consultarCiudadanos());
Gson parser = new GsonBuilder().create();
DataGridResultDTO rows = new DataGridResultDTO();
rows.setTotal(result.size());
rows.setRows(result);
return parser.toJson(rows);
public PersistenciaFacade getPersistenceFacade()
return persistenceFacade;
public void setPersistenceFacade(PersistenciaFacade persistenceFacade)
this.persistenceFacade = persistenceFacade;
JSP Page:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/gray/easyui.css">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/mobile.css">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/icon.css">
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/jquery.min.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/main.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/jquery.easyui.min.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/loadingoverlay.min.js"></script>
<title>Login</title>
</head>
<body>
<div class="easyui-panel">
<header>
<div class="m-toolbar">
<span class="m-title">Ciudadanos Registrados</span>
</div>
</header>
<div data-options="region:'west',split:true" style="width: 100%;">
<table id="ciudadanosTable" title="Ciudadanos" class="easyui-datagrid"
url="<%=request.getContextPath()%>/consultarCiudadanos.do"
scrollbarSize="1" pagination="true" method="get" autoLoad="true"
fitColumns="true" fit="true" singleSelect="true" >
<thead>
<tr>
<th data-options="field:'cedula',width:80">CC</th>
<th data-options="field:'nombre',width:100">Nombre</th>
<th data-options="field:'direccion',width:80,align:'right'">Direccion</th>
</tr>
</thead>
</table>
</div>
</div>
</body>
</html>
I expect the DataGrid to contain the RestController data. I'll appreciate any help.
Thank you.
datagrid jquery-easyui
I don't know why, but if you remove this: style="width: 100%;" , then it works!.
– RAFAEL PINO
Mar 25 at 17:21
add a comment |
I'm using DataGrid to present data from a Spring MVC RestController. But, when I set the Controller path in the DataGrid URL parameter, then no data is loaded into the DataGrid table. I've tested the JSON data from server successfully. So I wonder what's wrong with my code?. Please, Help.
I have tried using a JSON file containing the server response data. The DataGrid shows all my records successfully. But, when I use the controller path, then no data is shown.
Rest Controller:
@CrossOrigin(origins = "*")
@RestController
public class CiudadanoController
@Autowired
@Qualifier("persistenceFacade")
private PersistenciaFacade persistenceFacade;
@RequestMapping(value="/consultarCiudadanos.do")
@ResponseBody
public String consultarCiudadanos()
List<CiudadanoDTO> result = new ArrayList<CiudadanoDTO>();
result.addAll(persistenceFacade.consultarCiudadanos());
Gson parser = new GsonBuilder().create();
DataGridResultDTO rows = new DataGridResultDTO();
rows.setTotal(result.size());
rows.setRows(result);
return parser.toJson(rows);
public PersistenciaFacade getPersistenceFacade()
return persistenceFacade;
public void setPersistenceFacade(PersistenciaFacade persistenceFacade)
this.persistenceFacade = persistenceFacade;
JSP Page:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/gray/easyui.css">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/mobile.css">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/icon.css">
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/jquery.min.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/main.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/jquery.easyui.min.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/loadingoverlay.min.js"></script>
<title>Login</title>
</head>
<body>
<div class="easyui-panel">
<header>
<div class="m-toolbar">
<span class="m-title">Ciudadanos Registrados</span>
</div>
</header>
<div data-options="region:'west',split:true" style="width: 100%;">
<table id="ciudadanosTable" title="Ciudadanos" class="easyui-datagrid"
url="<%=request.getContextPath()%>/consultarCiudadanos.do"
scrollbarSize="1" pagination="true" method="get" autoLoad="true"
fitColumns="true" fit="true" singleSelect="true" >
<thead>
<tr>
<th data-options="field:'cedula',width:80">CC</th>
<th data-options="field:'nombre',width:100">Nombre</th>
<th data-options="field:'direccion',width:80,align:'right'">Direccion</th>
</tr>
</thead>
</table>
</div>
</div>
</body>
</html>
I expect the DataGrid to contain the RestController data. I'll appreciate any help.
Thank you.
datagrid jquery-easyui
I'm using DataGrid to present data from a Spring MVC RestController. But, when I set the Controller path in the DataGrid URL parameter, then no data is loaded into the DataGrid table. I've tested the JSON data from server successfully. So I wonder what's wrong with my code?. Please, Help.
I have tried using a JSON file containing the server response data. The DataGrid shows all my records successfully. But, when I use the controller path, then no data is shown.
Rest Controller:
@CrossOrigin(origins = "*")
@RestController
public class CiudadanoController
@Autowired
@Qualifier("persistenceFacade")
private PersistenciaFacade persistenceFacade;
@RequestMapping(value="/consultarCiudadanos.do")
@ResponseBody
public String consultarCiudadanos()
List<CiudadanoDTO> result = new ArrayList<CiudadanoDTO>();
result.addAll(persistenceFacade.consultarCiudadanos());
Gson parser = new GsonBuilder().create();
DataGridResultDTO rows = new DataGridResultDTO();
rows.setTotal(result.size());
rows.setRows(result);
return parser.toJson(rows);
public PersistenciaFacade getPersistenceFacade()
return persistenceFacade;
public void setPersistenceFacade(PersistenciaFacade persistenceFacade)
this.persistenceFacade = persistenceFacade;
JSP Page:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/gray/easyui.css">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/mobile.css">
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/icon.css">
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/jquery.min.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/main.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/jquery.easyui.min.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/script/loadingoverlay.min.js"></script>
<title>Login</title>
</head>
<body>
<div class="easyui-panel">
<header>
<div class="m-toolbar">
<span class="m-title">Ciudadanos Registrados</span>
</div>
</header>
<div data-options="region:'west',split:true" style="width: 100%;">
<table id="ciudadanosTable" title="Ciudadanos" class="easyui-datagrid"
url="<%=request.getContextPath()%>/consultarCiudadanos.do"
scrollbarSize="1" pagination="true" method="get" autoLoad="true"
fitColumns="true" fit="true" singleSelect="true" >
<thead>
<tr>
<th data-options="field:'cedula',width:80">CC</th>
<th data-options="field:'nombre',width:100">Nombre</th>
<th data-options="field:'direccion',width:80,align:'right'">Direccion</th>
</tr>
</thead>
</table>
</div>
</div>
</body>
</html>
I expect the DataGrid to contain the RestController data. I'll appreciate any help.
Thank you.
datagrid jquery-easyui
datagrid jquery-easyui
asked Mar 24 at 3:37
RAFAEL PINORAFAEL PINO
1
1
I don't know why, but if you remove this: style="width: 100%;" , then it works!.
– RAFAEL PINO
Mar 25 at 17:21
add a comment |
I don't know why, but if you remove this: style="width: 100%;" , then it works!.
– RAFAEL PINO
Mar 25 at 17:21
I don't know why, but if you remove this: style="width: 100%;" , then it works!.
– RAFAEL PINO
Mar 25 at 17:21
I don't know why, but if you remove this: style="width: 100%;" , then it works!.
– RAFAEL PINO
Mar 25 at 17:21
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320522%2fcant-load-remote-data-from-spring-mvc-restcontroller%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320522%2fcant-load-remote-data-from-spring-mvc-restcontroller%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I don't know why, but if you remove this: style="width: 100%;" , then it works!.
– RAFAEL PINO
Mar 25 at 17:21