userNameInput );
layoutB.setHTML( 4,
0,
"Password:" );
final PasswordTextBox userPassInput = new PasswordTextBox();
if ( rdbmsConf.getDbPass() != null && rdbmsConf.getDbPass().trim().length() > 0 ) {
userPassInput.setValue( rdbmsConf.getDbPass() );
}
userPassInput.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent w) {
repoDisplayArea.setVisible( false );
saveRepoConfigForm.setVisible( false );
}
} );
layoutB.setWidget( 4,
1,
userPassInput );
Button generateButton = new Button( constants.GenerateRepositoryConfiguration() );
generateButton.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent w) {
if ( driverInput.getValue() == null || driverInput.getValue().trim().length() < 1 ) {
Window.alert( constants.PleaseEnterDriver() );
return;
} else if ( urlInput.getValue() == null || urlInput.getValue().trim().length() < 1 ) {
Window.alert( constants.PleaseEnterUrl() );
return;
} else if ( userNameInput.getValue() == null || userNameInput.getValue().trim().length() < 1 ) {
Window.alert( constants.PleaseEnterUserName() );
return;
} else if ( userPassInput.getValue() == null || userPassInput.getValue().trim().length() < 1 ) {
Window.alert( constants.PleaseEnterPassword() );
return;
}
rdbmsConf.setDbDriver( driverInput.getValue() );
rdbmsConf.setDbUrl( urlInput.getValue() );
rdbmsConf.setDbUser( userNameInput.getValue() );
rdbmsConf.setDbPass( userPassInput.getValue() );
//rdbmsConf.setJndiDsName(jndiNameInput.getValue());
generateConfig();
}
} );
layoutB.setWidget( 5,