Instead of including scripts try to use the s:remote tag. If you use EJB's the @WebRemote should be added to the local interface else to the component method.
The jboss-seam-remoting.jar in the WEB-INF/lib should be enough for good working
Thanks. I use a4j actionparam to provide parameters to the modal panel, which works, only the parameters only get inserted after the modal panel gets displayed. How can I make sure that the actionparams get set before the modal panel fully displays?