我想要添加确认对话框befor编辑行或如何提示用户确认befor任何操作。 哪个对话框应该用于下面的代码。如何添加确认对话框
<h:commandLink value="EditPage" action="#{countryBean.editCountryByCountryCode(true)}" class="edit_icon" >
<f:setPropertyActionListener target="#{countryBean.editCountryId}" value="#{countryLang.countryCode}" />
</h:commandLink>
这是一种魅力。谢谢。 –
较短的“return confirm('真的想这样做?')”也是正确的。 – snorbi