Hi,
I have a page with frame in it, the left side being a jsf form and right side is an applet. The actions on the jsf form on the left cause the applet to refresh from time to time (e.g on a button press on form). The problem is that since the jsf page renders before the applet finishes it's refresh, the applet steals the focus from the jsf page (which is in the left side of the frame).
I'm currently using following js to set the focus (in jsf page):
parent.frames['leftFrame'].document.getElementById('form1:InputText_XX').focus();
Is there a way I can reset the focus one the applet has finished refresh (I do not have access to applet code so I cannot make any modifications there)?