use id of calendar + "InputDate".
<rich:calendar id="myCal" popup="true" direction="auto" enableManualInput="true"/> <div style="height:200px"></div> <a4j:commandButton value="test" focus="myForm:myCalInputDate"></a4j:commandButton>
works fine ;)
http://jira.jboss.com/jira/browse/RF-1332 - improvement.
sorry. I was mistaken. In this case - form name is mandatory.
thanks, works fine.
but can you tell me why the form name is mandatory in this case?
Because calendar component has no own focus function at present. To use simplified focus id's - you need to use the id of the component. But there is no component with id = id of calendar + "InputDate" in tree . Only component with id = id of calendar.
If you will use form+id form - this will be found simply as element in DOM.