开发者

JSF Confirmation

开发者 https://www.devze.com 2023-01-16 16:52 出处:网络
My application looks and works great so far. My users will have a lot of crucial decisions to make, like deleting or editing entities or accepting applications which causes an email. For that reason I

My application looks and works great so far. My users will have a lot of crucial decisions to make, like deleting or editing entities or accepting applications which causes an email. For that reason I want to integrate a common form of confirmation. And that's why I ask you:

What's your favourite way of confirmation (infobox, confirmation page etc..) and how to implement it properly?

I am开发者_Python百科 looking forward to your ideas :-)


I will vote for a dialog:

you can user friendly PrimeFaces dialog.


  • The simplest way would be to use javascript: confirm("Are you sure?")
  • A more stylable way would be to use <rich:modalPanel> with Yes/No, which in turn would submit the form. See an example
0

精彩评论

暂无评论...
验证码 换一张
取 消