【问题标题】:ice:paneConfirmation - is it really so bad?ice:paneConfirmation - 真的那么糟糕吗?
【发布时间】:2013-09-11 12:13:25
【问题描述】:

我发现了一个用于确认操作的好组件 - ice:panelConfirmation。但我认为,它有一个很大的错误。我不能更改标题的名称,总是有“确认”。真的有这么糟糕吗?或者有没有可能改变它?例如,我需要将其翻译成另一种语言。

这是我的代码:

 <ice:panelConfirmation id="deleteConfirm" message="#{msg['really']}" 
                                       acceptLabel="#{msg['yes']}" styleClass="dialog" 
                                       cancelLabel="#{msg['no']}" displayAtMouse="true"/>

...

  <ice:commandButton image="/resources/images/delete.png" action="#{postManager.delete(item)}" 
                                         title="#{msg['news.delete']}" styleClass="smallSpaces"
                                         panelConfirmation="deleteConfirm"/>

【问题讨论】:

    标签: icefaces


    【解决方案1】:

    ice:panelConfirmation 组件有一个“title”属性,您可以使用它来设置弹出标题的文本。看看here

    【讨论】:

    • 谢谢,拉兹万。我试过了,但它仍然显示“确认”。现在它工作正常。我必须是糟糕的部署。
    猜你喜欢
    • 2014-12-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-04
    • 2011-08-10
    • 2011-03-12
    • 2013-07-19
    • 2013-04-01
    相关资源
    最近更新 更多