Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF - Confirmation box  RSS feed

 
jeff rusty
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am using trinidad 2.09 and i want to have a custom confirmation box when user clicks on the delete button in my screen.

i dont want to use the javascript's Confirm() as the button ok and cancel can't be localized.. Is there any support provided in JSF for confirmation box when user go out of the page without saving and tries to delete a record..

Thanks
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea about the Trinidad component library, but it may be useful to know that you can easily mimic a confirm dialog using a simple div with the right CSS style and a shot of Javascript. Google around using straightforward keywords like "DHTML" and "confirm".

For a Trinidad specific answer try their own mailinglist/forum if you don't get answer here after long time.
 
yigit darcin
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use primefaces confirmation dialog, like :

http://www.rehberharitam.com/primefaces-examples/ui/buttonConfirmation.jsf
 
Tim Holloway
Bartender
Posts: 18703
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jeff rusty wrote:Hi ,

i dont want to use the javascript's Confirm() as the button ok and cancel can't be localized..

Thanks


Are you sure about that? I would hope that the browser's locale settings would ensure that the appropriate text was selected based on whatever preferred language the user had. Which is probably better in most cases than making the server define them, since that way they would match the user's specific understanding.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!