xml - Changing the background color of textbox java UiBinder -


i want change background color of textbox indicator being validated.

<ui:style>          .textboxcolor    {         background-color: #ff6eb4;   } </ui:style> 

and then

if(firstname.equals(""))     {          txtfirstname.setstylename("textboxcolor");     } 

this not giving expected result.

how can achieve change in color?

kind regards

if i'm not mistaken, css names declared in uibinder converted on compilation - setting style textboxcolor won't work, because there won't style name.

if add external css file (maybe more descriptive name, say... .validated), setstylename() work.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -