I have jsf page which lists the users , and i have delete button (which deletes the user corresponding to it) , it is working fine , but i want to make confirmation before deleting the user
is there any way to implement that using javascript or richfaces component ....etc
Yes there is. And although I am really beginning to hate JavaScript for any sort of serious work, this is one case where I recommend it.
On the commandButton:
This works with plain JSF with no read for any extended capabilities so there's no need to use a4j. In fact, this works for basic HTML even without JSF.
If you code an onclick handler on a submit button (or equivalent), the submit will be cancelled if the event handler returns false.
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.
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
a bit of art, as a gift, that will fit in a stocking