【发布时间】:2011-12-22 03:09:54
【问题描述】:
我的 Richfaces 3.3.3 应用程序中有 jquery。 我添加了以下内容以从 Richfaces 中包含它:
<a4j:loadScript
src="resource:///org/richfaces/renderkit/html/scripts/jquery/jquery.js" />
我现在正在尝试使用 jquery-ui datePicker 组件,但出现以下错误:
jQuery("#startDate").datePicker is not a function
这是我的代码导致它:
jQuery(document).ready(function() {
// Call constructor
var calendar = new App.Calendar();
});
// Constructor
App.Calendar = function() {
jQuery('#startDate').datePicker({
changeMonth: true,
changeYear: true
});
};
我需要从 Richfaces 中添加其他脚本吗?
甚至手动下载并包含 jquery-ui 文件?
谢谢
【问题讨论】:
-
也许您想查看primefaces.org - 您可以将primefaces 与您现有的richfaces 应用程序一起使用。
标签: javascript jquery jsf richfaces jquery-ui-datepicker