I am using Ext 2.2.1 (essentially the core) and I'm trying to find a solution to having validation errors messages from running off the screen or outside the confines of the error tool tip from custom validators I have written. Based on the API, I have not seen a way to modify or style the displaying of errors other than just changing the error icon. If anyone can help point me to a solution, please let me know.
No, I am looking for GXT help. I have tried putting in carriage returns in the error messages, but it does not seem to work. I wondered if it was also possible to move the error icon, say the other side of the field.
The GXT api is distinct from Ext 2.2.1 (unless in your original post you meant Gxt), and even css selectors are different, though for the time being they are quite similar.
How are you setting up the error messages so far? Are you using icon/tooltip off to the right, or the tooltips that appear when you hover? Code that demonstrates the basic problem will go a long way toward getting help.
Newline chars will never help in HTML to get line breaks - try instead (though I am uncertain if this will work) to use a <br/> tag in your error message.
Best bet for changing style is to use Firebug to see what styles are applied, and override them in your own CSS.