1

SAP-Netweaver-Expertsがここにあることを願っています...

SAPNWDSで非常に単純なJSFアプリケーションを開発しました

「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-Applicationを実行すると、「致命的なアプリケーションエラー:標準のレンダリングドキュメントタイプはサポートされていません。管理者に連絡してください」というテキストのポップアップアラートが表示されます。

「標準のレンダリングドキュメントタイプ」とは何か、どこで構成できるのかわかりません。

アイデアやヒントはありますか?

よろしくケイ

4

1 に答える 1

1

問題は行でした

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

この LSF フレームワークは<f:view>-Element で DOCTYPE を指定し、エラーは 2 番目の doctype に関連しているようです

于 2013-02-20T08:41:04.973 に答える