简体   繁体   English

如何使用jQuery设置rich:calendar(RichFaces)值?

[英]How to set rich:calendar (RichFaces) value with jquery?

I have a rich:calendar component and now i want to change the value of these components with JQuery. 我有一个rich:calendar组件,现在我想用JQuery更改这些组件的值。 I use Rich Faces Version 3.3.* 我使用Rich Faces版本3.3。*

But this command doesn't work: 但是此命令不起作用:

jQuery('#editForm:SomeDate').val('23.11.2014');

Is there a way, to change value of this component with JQuery? 有没有办法用JQuery更改此组件的值?

I'm not using RF-3 anymore (so can't really check), but this forum thread points out the best solution, IMHO: 我不再使用RF-3(因此无法真正检查),但是此论坛主题指出了最佳解决方案,恕我直言:

#{rich:component('editForm:SomeDate').setValue('23.11.2014');

Have a look at the Documentation , specifically Table 6.163. 查看文档 ,特别是表6.163。 JavaScript API for more useful methods. JavaScript API提供了更多有用的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM