【发布时间】:2015-06-30 12:13:55
【问题描述】:
我不知道如何使用 JavaScript 获取 PrimeFaces 组件中 <p:calendar> 的 Date 值
这是我的组件
<p:calendar id="calendarInicio"
widgetVar="horaInicioSpin"
value="#{hbean.horaInicial}" timeOnly="true"
pattern="HH:mm" required="true"/>
我需要获取组件的小时值,因为我要使用 JavaScript 将该值发送到其他 <p:calendar> 组件。
谁能给我一个想法?提前谢谢...
【问题讨论】:
-
尝试在 JavaScript 中使用
PrimeFaces.widgets['horaInicioSpin']。
标签: javascript jsf primefaces calendar