spring3mvcportlet填充JSON dojo选择 [英] spring3mvcportlet populate JSON dojo select

查看:156
本文介绍了spring3mvcportlet填充JSON dojo选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚来到Spring mvc3 portlet和dojo。当我加载jsp时,我试图用JSON数据填充选择下拉列表。我想使用dojo并给控制器ajax调用,并在加载jsp时返回JSON。任何提示都将有所帮助。

解决方案

我得到以下格式的数据
如何填充dojoType =xwt.widget.form.FilteringSelect
{ValuesDTO:{items:[{},{default:{size:5},int:10,string:Product1,string Product1,string:product3,string:product4,string:product5}]}}



豆---> DTO --->列表


I am new to Spring mvc3 portlet and dojo. I am trying to populate select dropdown with JSON data when jsp is loaded. I want to use dojo and give ajax call to controller and return JSON when jsp is loaded. Any tips will be helpful.

解决方案

I get data in below format How do I populate dojoType="xwt.widget.form.FilteringSelect" {"ValuesDTO": {"items": [{},{"default": {"size": 5},"int": 10,"string": "Product1","string": "Product1 ","string": "product3","string": "product4","string": "product5"}]}}

I am sending dat in bean--->DTO--->List

这篇关于spring3mvcportlet填充JSON dojo选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆