setStyleProperty(widget, backgroundColor, "red");

You might use a popupPanel or something similar if you also want to
display a message.

On Apr 7, 10:44 am, Vik <[email protected]> wrote:
> Hie
>
> I am new to gwt and looking for some sample code to mark a component in red
> and show error message.
> For example say there is a text box with label First Name
>
> when some one fill it and tab out i may validate it and in case of issue can
> mark the first name text box component as red and display msg invalid first
> name
>
> Please advise
>
> Thankx and Regards
>
> Vik
> Founderwww.sakshum.comwww.sakshum.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to