Getting validation error message from TextField.

Just a quick question guys.

I attached multiple validators to a TextField, including AbstractStringMessageValidator descendant providing a nicely formatted message through the getErrorMessageWithValue() method.

When I press the button (here the “register” button), I’d like to access that error message directly from the TextField to which the validators are attached. Here is what I do currently:


					if(!nickNameField.isValid()) {
						NotificationUtil.showNotification(nickNameField.getErrorMessage().toString(),
						"Please choose another nickname.");
					}

Here is the output:


http://screencast.com/t/Q3ULvn1GFR

Ugly isn’t it?

My question is: is there a way to get formatted error messages (String) from the TextField (and not directly from the validators) ?
If the answer is no, question 2: can you add that to your API ?

Many thanks!