Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery ui 自定义primefaces主题上未显示ui图标_Jquery Ui_Jsf 2_Primefaces_Themeroller - Fatal编程技术网

Jquery ui 自定义primefaces主题上未显示ui图标

Jquery ui 自定义primefaces主题上未显示ui图标,jquery-ui,jsf-2,primefaces,themeroller,Jquery Ui,Jsf 2,Primefaces,Themeroller,我使用JqueryUI ThemeRoller创建了一个自定义主题,然后将其转换为jar文件,安装在maven repositoty中,并将其指定到jsf 2.2项目中,正如primefaces文档中所述。事实上,一切正常,但ui图标无法显示 有人知道发生了什么吗?我也有同样的问题 我通过比较PrimeFaces主题的定义来解决这个问题。使用ThemeRoller创建的jQuery主题以这种方式导入图标: .ui-icon { width: 16px; height: 16px; backgro

我使用JqueryUI ThemeRoller创建了一个自定义主题,然后将其转换为jar文件,安装在maven repositoty中,并将其指定到jsf 2.2项目中,正如primefaces文档中所述。事实上,一切正常,但ui图标无法显示


有人知道发生了什么吗?

我也有同样的问题

我通过比较PrimeFaces主题的定义来解决这个问题。使用ThemeRoller创建的jQuery主题以这种方式导入图标:

.ui-icon { width: 16px; height: 16px; background-image: url("images/ui-icons_626262_256x240.png"); 
您必须将其替换为:

.ui-icon { width: 16px; height: 16px; background-image: url("#{resource['primefaces-YOUR-THEME-NAME:images/ui-icons_626262_256x240.png']}");}</b>
.ui-icon 
.ui-widget-content .ui-icon 
.ui-widget-header .ui-icon 
.ui-state-default .ui-icon 
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon 
.ui-state-active .ui-icon 
.ui-state-highlight .ui-icon
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon