不支持Netweaver JSF呈现文档类型

时间:2013-02-13 16:53:21

标签: jsf java-ee sap lsf

我希望这里有一些SAP-Netweaver-Experts ......

我在SAP NWDS中开发了一个非常简单的JSF应用程序

使用“SAP Component Library for JSF”

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="f" uri="http://java.sap.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sap.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
<html>
    <head>
        <title>Hallo ?</title>
    </head>
    <body>
    <h:form>
    <h:messages/>
    <hr>
        <h:panelGrid border="0" columns="2">
            <h:outputText value="First Name" style="color: #808080; font-style: normal; font-size: 12px; font-family: Verdana, Arial, Sans-Serif; font-weight: bold"></h:outputText>
            <h:inputText value="#{person.name}"></h:inputText>
        </h:panelGrid>
        <h:commandButton value="Submit" action="submit"></h:commandButton>  
    </h:form>
    </body>
</html>
</f:view>

如果我运行JSF-Application,我会收到一个Popup-Alert,其中包含“致命的应用程序错误:不支持标准呈现文档类型。请联系您的管理员”

我不知道“标准渲染文档类型”是什么以及我可以在哪里配置它。

任何想法或提示?

关心凯

1 个答案:

答案 0 :(得分:1)

问题就在这一行

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

似乎这个LSF-Framework在<f:view> - 元素中给出DOCTYPE,而错误与第二个doctype相关