我想将 Jsp 包装器用于带有 NetBeans 的 KendoUI。
在我的控制器中,我添加了 ComboBox 的示例代码:
@RequestMapping(value = {"/", "/index"}, method = RequestMethod.GET)
public String index(Model model) {
model.addAttribute("fabrics", new DropDownListItem[] {
new DropDownListItem("Cotton", "1"),
new DropDownListItem("Polyester", "2"),
new DropDownListItem("Cotton/Polyester", "3"),
new DropDownListItem("Rib Knit", "4")
});
model.addAttribute("sizes", new String[] {
"X-Small",
"Small",
"Medium",
"Large",
"X-Large",
"2X-Large"
});
return "web/combobox/index";
}
我做一个导入:
import com.kendoui.spring.models.DropDownListItem;
但是 NetBeans 说:package import com.kendoui.spring.models does not exist。我使用 NetBeans 的“手动安装工件”功能将 kendo-taglib-2013.1.319.jar 的依赖项添加到 pom.xml。在 html 端使用 KendoUI 时一切正常。
在http ://docs.kendoui.com/getting-started/using-kendo-with/jsp/introduction 上找到的要求说“面向企业开发人员的 Eclipse Juno(J2EE 支持)”是必需的。
你们有没有成功地将 KendoUI 与 NetBeans 一起使用?如果是,要进行哪些步骤?