protected void updateList ( PageElement pageElement , String textOrKey ) throws TechnicalException , FailureException { String value = getTextOrKey ( textOrKey ) ; try { setDropDownValue ( pageElement , value ) ; } catch ( final Exception e ) { new Result . Failure <> ( e . getMessage ( ) , Messages . format ( Messages . getMessage ( Messages . FAIL_MESSAGE_ERROR_ON_INPUT ) , pageElement , pageElement . getPage ( ) . getApplication ( ) ) , true , pageElement . getPage ( ) . getCallBack ( ) ) ; } }
Update a html select with a text value .