• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

JSF - Confirmation box

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use primefaces confirmation dialog, like :

http://www.rehberharitam.com/primefaces-examples/ui/buttonConfirmation.jsf
 
Saloon Keeper
Posts: 28070
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Always look on the bright side of life. At least this ad is really tiny:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic