开发者

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)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜