I want to show the current month and year using rich:calendar component during page initialization
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I guess you want the calendar control expanded displaying current month and year.
If it is what you want then you can add the following script after control rendering
#{rich:component('myCalId')}.doExpand();
You can use different such component function of richfaces in that fashion defined here.