1 of 1 people found this helpful
Calendar component validates input content and the validation is too strict for your case - date is undefined, so the whole selection is cleared. As a workaround, you can use pattern yyyy-MM-d, hide input via CSS and place text updated via JS by selection event instead of it.
I do not have any other idea on the "hide input via CSS". Do you have any suggestion on that?
I meant that you can set calendar's pattern to yyyy-MM-d and hide its main input so that user won't see date number. Then you can provide your own input programmed via JS. It's easy to implement if you need read only input, but if not, I recommend to use another way - e.g. fix the problem in calendar code and rebuild it or use another component for months selection - e.g. a4j:repeat with links.