Can anyone tell me please how can I use JBoss Seam FacesContext inside a javascript method so I can get the url of the current context page? Thank you in advance.