How to show month, year using rich:calendar?

2019-08-12 20:31发布

问题:

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.