right click functionality in JSF?

How do I call an "onContextMenu" correspondingly in JSF?

I want to customise the right click menu whenevr I click on the input fields on my page.

I use JSF tags. <h:inputText id="text1">

In case of HTML, 'oncontextmenu' works. But in JSF, no such attribute exists. How do I go about the same?

Kindly help since I am very new to the JAVA/JSF world.

[408 byte] By [aparna_ra] at [2007-11-27 10:52:41]
# 1

It is actually like this..

I can get it to display the menu when I right click across the whole page. But I would like to enable it to be displayed only when I right click on the <h:inputText> fields, and keep the default right click menu for the other parts of the page.

document.oncontextmenu=showmenu()

displays the right click menu all over the page. How do I enable the same only for selected fields?

Kindly guide through.

aparna_ra at 2007-7-29 11:39:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...