trim() method called in user form creation before submitting it

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/create-users@131034 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-08-29 15:59:37 +00:00
parent b0fbde6943
commit 7937e8cfd8
1 changed files with 4 additions and 4 deletions

View File

@ -112,10 +112,10 @@ public class AddUserForm extends Composite{
void onClick(ClickEvent e) {
// input validation
String actualName = nameTextbox.getText();
String actualSurname = surnameTextbox.getText();
String actualEmail = emailTextbox.getText();
String actualCompany = companyTextbox.getText();
String actualName = nameTextbox.getText().trim();
String actualSurname = surnameTextbox.getText().trim();
String actualEmail = emailTextbox.getText().trim();
String actualCompany = companyTextbox.getText().trim();
if(actualEmail.isEmpty() || !actualEmail.matches(EMAIL_PATTERN)){