JSF Double Click perform action
开发者_运维知识库How can I execute a backing bean action when a user double clicks on a menu? e.g. using a selectManyListbox I assume I would need some javascript to execute a backing bean action using ondblclick.
Is there a way to do this?
Thanks, Dwayne
<h:selectManyListBox
ondblclick="document.getElementById('yourFormId').submit()" />
(or use one of numerous ways to obtain the parent form and submit it)
精彩评论