public void setOnFocus ( String onfocus ) { AbstractHtmlState tsh = getState ( ) ; tsh . registerAttribute ( AbstractHtmlState . ATTR_JAVASCRIPT , ONFOCUS , onfocus ) ; }
Sets the onFocus javascript event .