If you have a JSF <h:commandLink> (which uses the onclick event of an <a> to submit the current form), how do you execute JavaScript (such as asking for delete confirmation) prior to the action being performed?
If you have a JSF <h:commandLink> (which uses the onclick event of an <a>
Share
Other Javascript actions (like validating form input etc) could be performed by replacing the call to
confirm()with a call to another function.