I think modalPanel needs an attribute to call javascript methods on opening modalPanel.
For example, I want to set focus on the first field on the form of modalPanel. If I do it this way:
Richfaces.showModalPanel('...');document.getElementById('...').focus();
http://jira.jboss.com/jira/browse/RF-195
RFC created. Thanks.