【问题标题】:Change default image of rich:pickList buttons更改 Rich:pickList 按钮的默认图像
【发布时间】:2012-10-30 17:08:16
【问题描述】:

如何更改按钮的默认图像?没有这样的属性,也没有使用构面的选项。我已经google了一段时间,仍然没有找到解决方案。感谢您的回答!

【问题讨论】:

  • 对我不起作用

标签: jsf-2 richfaces


【解决方案1】:

Facets 对我不起作用,因为我试图将它附加到禁用的按钮上。所以解决方案:

<f:facet name="copyControl"> 
  <h:commandButton image="path/to/image" /> 
</f:facet>

工作正常,但我仍然不知道如何将图像附加到禁用元素

【讨论】:

    【解决方案2】:

    我的耻辱。看来日子过得太苦了:)

    给定属性的替代方案是以下方面: "copyAllControl" , "removeAllControl" , "copyControl" , "removeControl" , >"copyAllControlDisabled" , "removeAllControlDisabled" , "copyControlDisabled" , >"removeControlDisabled" , "caption" 。

    我希望这对某人有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多