public static void show ( DialogControl < ? > control ) { DialogResponse < ? > response = control . getLastResponse ( ) ; if ( response != null ) { control . callback ( response ) ; return ; } Window root = null ; try { Map < String , Object > args = Collections . singletonMap ( "control" , control ) ; root = ( Window ) PageUtil . createPage ( DialogConstants . RESOURCE_PREFIX + "promptDialog.fsp" , ExecutionContext . getPage ( ) , args ) . get ( 0 ) ; root . modal ( null ) ; } catch ( Exception e ) { log . error ( "Error Displaying Dialog" , e ) ; if ( root != null ) { root . destroy ( ) ; } throw MiscUtil . toUnchecked ( e ) ; } }
Display the prompt dialog .