• Post Reply Bookmark Topic Watch Topic
  • New Topic

confirm dialog h:commandLink

 
Ayub ali khan
Ranch Hand
Posts: 395
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could any one point me the correct code to show a confirm dialog box when commandLink is clicked ?

I have used the below approach, however its not bringingup the confirm dialong on websphere portal.

<h:commandLink id="removeId" actionListener="#{userView.uiDeleteUser}" onmousedown="return confirm('Are you sure?');">

Thank you.

--Ayub
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!