1

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

我在 SAP NWDS 中开发了一个非常简单的 JSF-Application

使用“适用于 JSF 的 SAP 组件库”

<%@ 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 应用程序,我会收到一个弹出警报,其中包含以下文本“致命应用程序错误:不支持标准呈现文档类型。请联系您的管理员”

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

任何想法或提示?

问候凯

4

1 回答 1

1

问题是线路

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

似乎这个 LSF-Framework 在 -Element 中给出了 DOCTYPE<f:view>并且错误与第二个 doctype 有关

于 2013-02-20T08:41:04.973 回答