IntelliJ gwt plugin - why do I get "unknown css class" errors? -


i'm walking through gwt "stockwatcher" example @ moment. trying on intellij though i've got bit of strange problem; seems intellij doesn't find css classes.

i've added line stockwatcher.gwt.xml:

<stylesheet src="css/stockwatcher.css"/> 

and web module has stockwatcher/css/stockwatcher.css:

body {   padding: 10px; } .watchlistheader {   background-color: #2062b8;   color: white;   font-style: italic; } .watchlist {   border: 1px solid silver;   padding: 2px;   margin-bottom: 6px; } .watchlistnumericcolumn {   color: red; } 

in stockwatcher class:

stockflextable.getrowformatter().addstylename(0,"watchlistheader"); // no error, can't "go to"  ----------------^ stockflextable.addstylename("watchlist"); // ----------------------------^ stockflextable.getcellformatter().addstylename(0, 1, "watchlistnumericcolumn"); // ----------------------------------------------------^ stockflextable.getcellformatter().addstylename(0, 2, "watchlistnumericcolumn"); // ----------------------------------------------------^ // on these lines "unknown css class" 

how can resolve this? supposed tell intellij these css classes? if so, how? or intellij in fixed css file? "resolution" inspection offers suppress warning, i'd rather not unless there's no other way.

try 1 in html/jsp file

<link type="text/css" rel="stylesheet" href="css/stockwatcher.css"> 

there no need add stylesheet in gwt.xml.


try 1 in gwt.xml

<stylesheet src="/css/stockwatcher.css"/> 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -