《缺失的身体元素》使用 Netbeans 上的 Visual Web Pack

发布于 2024-08-09 17:11:58 字数 1440 浏览 2 评论 0原文

目前,我遇到了 Visual Web Package for Netbeans 6.7 生成的 JSF 页面的问题。

当我生成一个新页面时,它会生成一个包含以下 JSP 代码的页面:

    <?xml version="1.0" encoding="US-ASCII"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=US-ASCII" pageEncoding="US-ASCII"/>
    <f:view>    
        <ui:page id="page1">
            <ui:html id="html1">
                <ui:head id="head1">

                    <ui:link id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body id="body1" style="-rave-layout: grid">
                    <ui:form id="form1">
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>

但是,当我尝试查看它时,会出现错误“缺少正文元素”。这是相当令人沮丧的。

我花了很多天的时间在谷歌上搜索解决方案,但除了死胡同之外一无所获。当 Netbeans 尝试切换到设计视图时,这会记录在错误日志中:

SEVERE [global]
java.lang.NullPointerException
        at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.findMarkupSectionElement(FacesPageUnit.java:665)
        at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.newCreatedBean(FacesPageUnit.java:597)

有人对此有解决方案吗?

I am currently having an issue with the JSF pages that the Visual Web Package for Netbeans 6.7 generates.

When I generate a new page it produces a page with the following JSP code:

    <?xml version="1.0" encoding="US-ASCII"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=US-ASCII" pageEncoding="US-ASCII"/>
    <f:view>    
        <ui:page id="page1">
            <ui:html id="html1">
                <ui:head id="head1">

                    <ui:link id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body id="body1" style="-rave-layout: grid">
                    <ui:form id="form1">
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>

However when I attempt to view it an error comes up with "Missing Body Element." This is quite frustrating.

I've spent many days googling for a solution for this and have run into nothing but dead ends. When Netbeans attempts to switch to design view this is logged in the error log:

SEVERE [global]
java.lang.NullPointerException
        at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.findMarkupSectionElement(FacesPageUnit.java:665)
        at org.netbeans.modules.visualweb.insync.faces.FacesPageUnit.newCreatedBean(FacesPageUnit.java:597)

Does anyone have a solution for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手心的海 2024-08-16 17:11:58

事实证明,这是一个被忽视的问题,而且暂时不会得到解决。

It turns out that this is a problem that is being ignored, and won't be fixed for a while.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文