This content has been marked as final.
Show 4 replies
-
1. Re: focus calendar problem
ilya_shaikovsky Nov 12, 2007 9:40 AM (in response to rainw)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. -
2. Re: focus calendar problem
ilya_shaikovsky Nov 12, 2007 10:12 AM (in response to rainw)sorry. I was mistaken. In this case - form name is mandatory.
-
3. Re: focus calendar problem
rainw Nov 13, 2007 3:27 AM (in response to rainw)thanks, works fine.
but can you tell me why the form name is mandatory in this case? -
4. Re: focus calendar problem
ilya_shaikovsky Nov 13, 2007 5:52 AM (in response to rainw)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.