Focus sample

Focus is placed on control withing modal panel. Modal panel is rendered before it is shown, thus javascript that sets focus should not be invoked at that moment. To cope with that focus component has "timing" attribute which, when valued to "onJScall" allows setting focus later whenever user wishes. When "timing" is set to "onJScall" then "name" attribute must be also specified. It is name of JavaScript function that will be generated and can be called by user to set focus in any moment. In this example we put onshow="focusTheForm();" in modal panel which causes focus to be placed after the modal is visible. Notice that "name" attribute of focuse component is equal to "focusTheForm".