我想追加一种风格
<style>.requested {background: #9391ba;color:#000000}.accepted {background: #eb17eb;color:#000000}.completed {background: #ccc;color:#000000}.cancelled {background: #d7d7db;color:#000000}.cancelledwithpenalty {background: #ccc;color:#000000}</style>
值从服务器端更改,因此我将其设置为managedbean属性并在xhtml中将其用作
<h:outputText value="#{serviceCalendarViewBean.employeeStyleClass}" escape="false" />
当我更改employeeStyleClass的值并重新加载页面时,不会加载新样式。如果我再次刷新页面,则加载新样式。 有没有办法在页面加载时刷新样式? 我在h:head和h:body中给出了outputtext但第一次没有加载