public void focus ( String expression , UIComponent base ) { if ( LangUtils . isValueBlank ( expression ) ) { return ; } FacesContext facesContext = getFacesContext ( ) ; String clientId = SearchExpressionFacade . resolveClientId ( facesContext , base , expression ) ; executeScript ( "PrimeFaces.focus('" + clientId + "');" ) ; }
Resolves the search expression and focus the resolved component .