我有一个h:commandLink,我想在执行操作之前显示一个确认jsf对话框。(不需要javascript确认弹出窗口)
def new
@dashboard = Dashboard.new
3.times do
@dashboard.build_reward
end
end
答案 0 :(得分:1)
你可以像这样使用primefaces Confirm Dialog:
<p:commandButton value="ok" action="yourAction">
<p:confirm header="Confirmation" message="Are you sure?" icon="ui-icon-alert" />
</p:commandButton>