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..
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.
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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Always look on the bright side of life. At least this ad is really tiny: