by "view source", I see a lot of .js file are included in the demo page, for example:modelPanel.js.jsf.
But for me, even I included <rich:modalPanel>, but view my souce, I didn't see the modelPanel.js.jsf in there, so if I do Richfaces.hideModelPanel(), it complains that "Richfaces is not defined." What do I need to do?
But modelPanel.js.jsf file IS in my web app, if I point my browser to there, I see the content of that js file.
I figured it out, once the modalPanel is added to the page correct, all the js file will be included.