2011-08-01 51 views
2

我需要使用JSF添加弹出日历。我正在使用netbeans 6.9.1和galssfish 3.1。JSF日历组件

我用Google搜索,发现这个

<ui:calendar binding="#{booking.calDate}" id="calDate" 
      dateFormatPattern="dd/MM/yyyy" label="Date ::"/> 

,但它给出了一个错误,指出:

the component library facelets doesn't contain such component 

可能是什么使这项工作的正确途径。

其次,日期将被存储或选定的图案将出现在格式dd/MM/yyyy。我需要将它存储在MySQL数据库中。

在Bean Class中我应该说Calendar cal = new Calendar();

+1

你在哪里复制代码。 ui:压光机不是标准标签。 – Jacob

回答