PrimeFaces CSS 皮肤未显示在登录页面中,还有 JavaScript 未定义错误 [英] PrimeFaces CSS skin not showing in login page, also JavaScript undefined errors
本文介绍了PrimeFaces CSS 皮肤未显示在登录页面中,还有 JavaScript 未定义错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的 Web 应用程序中使用 PrimeFaces 3.4,对于特定页面,控件未与普通 PrimeFaces 皮肤一起显示:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"xmlns:h="http://java.sun.com/jsf/html"xmlns:f="http://java.sun.com/jsf/core"xmlns:ui="http://java.sun.com/jsf/facelets"xmlns:p="http://primefaces.org/ui"><h:头><title>VMS登录</title></h:head><h:body><h:form id="登录表单"><p:messages id="messages" showDetail="true" autoUpdate="true" closable="true"/><p:panel header="#{msgs['login.title']}"><p:panelGrid id="loginPanel" columns="2"><h:outputText value="#{msgs['login.username']}"/><p:inputText id="j_username" value="#{loginFormBean.userName}" required="true"></p:inputText><p:message for="j_username" ></p:message><h:outputText value="#{msgs['login.password']}"/><p:password id="j_password" value="#{loginFormBean.password}" required="true" feedback="false"></p:password><p:message for="j_password"></p:message><p:commandButton action="#{loginController.loginUsingSpringAuthenticationManager}" value="#{msgs['login.button']}" update="loginForm" ajax="true"></p:commandButton></p:panelGrid></p:面板></h:form></h:body>