PDA

View Full Version : Not really a bug: error message of regex-error in german translation missing



gishmo
8 Aug 2010, 11:23 PM
Hi,
just played with GXT 2.1.1. When using TextField and regular expressions wrong strings are identified and marked as error. But, when locale is German, no message-text is displayed, if mouse is over the red dot. (Didn't test it with locale English)
best regards,
Frank

Colin Alworth
9 Aug 2010, 9:17 AM
You are correct that it isn't a bug :). No language can have this set by default - what would it say? "Your input doesn't match the particular hand-crafted regex that this field needs"?

It could say something useless like "This field is invalid", but the red icon already indicates that...

gishmo
9 Aug 2010, 11:03 AM
Sounds logical ... :-) Is there a chance to set the error message (sorry, I am new to GXT)

sven
9 Aug 2010, 11:08 AM
field.getMessages().setRegexText("mytext");

gishmo
9 Aug 2010, 11:32 AM
Merci ...