I am getting an error "Uncaught Reference Error: jsf is not defined at HTMLAnchorElement.onclick".Please help me to resolve this issue : I am using JSF2.2 with RichFaces4.5. I have an xhtml page with a custom defined jsf tag for pdf pop up.But when i click on the pdf link in the page,i am getting the error "**Uncaught Reference Error: jsf is not defined at HTMLAnchorElement.onclick**" in the browser javascript console.I saw few questions which have been already posted related to this issue and the answers provided were to include <h:head> or <h:body> tags in the xhtml page.I tried those but still I am getting the same error.Could anyone please help me in resolving this out?