开发者

JSF Double Click perform action

开发者 https://www.devze.com 2022-12-25 14:56 出处:网络
开发者_运维知识库How can I execute a backing bean action when a user double clicks on a menu?

开发者_运维知识库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)

0

精彩评论

暂无评论...
验证码 换一张
取 消