Can someone please point to me why this jQuery doesn't work. I'm trying to show Modelpanel onload but it's not working. I've tried an alert in it that's working fine so I presume it's this line Richfaces.showModalPanel('location'); that causing the problem. Anyone with an idea ?????