You may freelly use binding to create menu from java code. All you need in your case is to add a4j:support to table(also possible from java code if your table generated using binding). Specify onDblClick event, in support. And construct the modal in its action or actionListener, but in order to call the panel js api should be used (e.g. in oncomplete of this support).
Thanks for the reply ilya, i appreciate the help. Actually the reqirement is that I need to render the Modal Panel without using any js api.
I have created the Modal Panel inside the JSF page and I need to invoke the Modal Panel from the Backing Bean i.e. dynamically render the Modal Panel from the Backing Bean code after the response has come back from the server.