【问题标题】:ace:tabSet style is corrupted when using ICEFaces 3ace:tabSet 样式在使用 ICEFaces 3 时已损坏
【发布时间】:2012-03-18 13:14:49
【问题描述】:

您好,当使用 icefaces 2 时,下图是我的标签页的外观

迁移到 icefaces 3 后,我的标签页如下所示:

ace:tabSet 代码:

<ace:tabSet clientSide="true" id="permissionsTab">
<c:forEach items="#{myBean.tabs}" var="tab" varStatus="loop">               

                  <ace:tabPane>
                    <f:facet name="label">#{tab.name}</f:facet>             
                    <div style="height:180px; overflow:auto;">
                       <h:selectManyCheckbox value="#{tab.values}" layout="pageDirection" >
                           <f:selectItems value="#{tab.checkBoxes}" />
                       </h:selectManyCheckbox>
                       </div>
                  </ace:tabPane>

                </c:forEach>

           </ace:tabSet>

-这就是我如何使用 icefaces 2 的皮肤:

<h:head>
  <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css"/>
</h:head>

<h:body styleClass="ice-skin-rime">
</h:body>
<h:outputStylesheet library="org.icefaces.component.skins" name="rime.css" />

当我搬到 icefaces 3 时,我不得不删除以下行:

<h:outputStylesheet library="org.icefaces.component.skins" name="rime.css" />

请告知如何修复 icefaces 3 中的样式。

【问题讨论】:

  • 我打赌这里的问题是与不兼容的rime.css,你能添加icefaces 3 兼容rime.css 看看是否能解决问题?
  • 你将不得不寻找与 icefaces 3 兼容的 rime.css 并查看你的 css 是相同的还是不同的,如果不同,那么你可能需要检查你拥有的 jar 的版本。
  • 如果你没有适当的相关罐子,icefaces 会做一些讨厌的事情......

标签: icefaces


【解决方案1】:

为了让它工作,我使用了一种解决方法,即从提取的 icefaces-ace jar复制 rime 样式:在路径 org\icefaces\icefaces -ace\3.0.0\META-INF\resources\icefaces.ace\themes\rime\theme.css 并将其放在我的 css 文件夹中,并使用以下命令手动加载:

<h:outputStylesheet name="theme.css" library="css" />

并将rime文件夹中的图片也复制到我的images文件夹中,并调整了theme.css文件中图片的url。

【讨论】:

  • 参考stackoverflow.com/q/9768194/164299,我已经在那里发布了答案,我遇到了类似的问题,rime.css 没有被引用,但我能够通过发布的解决方案修复它。
猜你喜欢
  • 2013-05-14
  • 2012-01-12
  • 2011-01-13
  • 2016-03-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多