【发布时间】:2017-02-24 07:29:00
【问题描述】:
这是我的 xhtml 文件:
<html>
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252"/>
</h:head>
<h:body>
<view>
<h:form>
<br/>
<br/>
<center>
<h:panelGrid columns="2">
<f:facet name="header">
<h:outputText value="Login"/>
</f:facet>
<h:outputText value="Benutzername:"/>
<h:inputText value="#{benutzer.benutzerName}" size="18"/>
<h:outputText value="Passwort: "/>
<h:inputSecret value="#{benutzer.passwort}" size="18"/>
<f:facet name="footer">
<h:commandButton value="Login" action ="#{benutzer.doLogin}"/>
</f:facet>
</h:panelGrid >
</center>
</h:form>
</view>
</h:body>
每次我尝试运行它时都会收到错误消息“元素 h 的前缀 h:head 未绑定。”
这让我发疯。为什么会出现此错误?
【问题讨论】: