how to change style textitem?

hi

since my searches only result in guessing how to style some special cases
i just wanted to know how can i change the style of a simple textitem
i have a dynamicform which is used for new registrations
in case of a validation error i wanted to set the background color to red

maybe someone can provide real code
using this.city.setCellStyle(“textItemError”); and this.city.setAttribute(“STYLE”, “background-color:#000000;”);
didnt work with

.textItemError textItem {
	background-color: #77000
}

so how does it have to be done correctly?

smartGWT 2.2
firefox 3.6.8

thx

for background, you have to set textBoxStyle

it worked
many thanks

this.city.setTextBoxStyle(“myTextItemError”);
with the style in the projects css

.myTextItemError {
	background-color: #F7C69E;
}