提问人:Marco 提问时间:7/21/2016 更新时间:7/21/2016 访问量:1687
如何将传递参数放入<p:confirm message=“”>?
How to put a passing parameter into <p:confirm message="">?
问:
这是我所拥有的:
<p:growl id="message" showDetail="true" />
<p:commandButton value="delete user" actionListener="#{bean.deleteUser(user)}" update="@form">
<p:confirm header="Confirm" message="Are you sure to delete #{user.username}?" icon="ui-icon-alert" />
</p:commandButton>
<p:confirmDialog global="true" showEffect="fade" hideEffect="fade">
<p:commandButton value="yes" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
<p:commandButton value="No" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
</p:confirmDialog>
该变量根本不会显示。
我做错了什么?#{user.username}
答: 暂无答案
评论
<p:confirm
#{user.username}
p:confirmDialog
<p:confirmDialog...><p:outputLabel value="Are you sure to delete #{user.username}?"/>...