У меня есть еще один вопрос! Я пытаюсь настроить HtmlPanelGrid из бобов. Я привязал PanelGrid к этому бину и хочу установить классы строк CSS.
Вот мне stylesheet.css:
.list-row-even {
background-color: silver;
}
.list-row-odd {
background-color: red;
}
Моя страница JSF:
<rich:tab label="Top-List" id="screenTop">
<h:panelGrid id="topListTable" binding="#{chartBean.topListTable}" />
</rich:tab>
и мой боб:
public TopListChartWrapper(Iterator<Entry> treeIt) {
this.grid = new HtmlPanelGrid();
//this.grid.setBgcolor("yellow");
this.grid.setColumns(2);
this.grid.setBorder(0);
this.grid.setCellpadding("0");
this.grid.setCellspacing("0");
this.grid.setWidth("100%");
this.grid.setRowClasses("list-row-even, list-row-odd");
this.treeIterator = treeIt;
this.prepareGrid();
}
Есть идеи? может где-то мне нужно зарегистрировать мою таблицу стилей?
Спасибо!