mojarra is not defined

♀尐吖头ヾ 提交于 2019-12-12 03:08:37

问题


I'm developing JSF application with mojarra.

I'm getting javascript error "mojarra is not defined".

After deploy everything is ok, ajax call works properly. But after refreshing page, error appears.

There is lack of javascript include in head tag after refreshing.

It seems to be working very moody.

Same behavior I have on Tomcat and Glassfish, Mojarra is in version 2.0.3.


回答1:


One of the reason this error can appear is by using <head>..</head> and <body>...</body> tags instead of <h:head>...</h:head> and <h:body>...</h:body>.

Namespace - xmlns:h="http://java.sun.com/jsf/html"



来源:https://stackoverflow.com/questions/10009238/mojarra-is-not-defined

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!