If the control that is being refreshed by your round trip is a form control or one of the hideable panel controls, then you could try setting the value of the ‘Default Focus’ property of the panel/form control to the id of the input control that you want to have focus after the refresh has completed.
Otherwise you should be able to set the focus progammatically from a script from an action complete listener that is attached to the command control that did the action. For example, something like this in a script block that is outside the control being refreshed:
//declare the custom function and store it on the window object
window.doCustomFocusFn = function(){
CAF.model("#{activePageBean.clientIds['htmlSelectOneMenu1']}").setFocused(true);
}
//remove the previous reference just in case, so we don't get duplicates
CAF.model("#{activePageBean.clientIds['button']}").removeActionCompleteListener(window.doCustomFocusFn);
//add a reference to the custom listener
CAF.model("#{activePageBean.clientIds['button']}").addActionCompleteListener(window.doCustomFocusFn);
#MWS-CAF-Task-Engine#webMethods#webMethods-BPMS