“缺少身体元素”使用Netbeans上的Visual Web Pack [英] "Missing Body Element" with the Visual Web Pack on Netbeans
问题描述
我目前遇到了Netbeans 6.7的Visual Web Package生成的JSF页面的问题。
I am currently having an issue with the JSF pages that the Visual Web Package for Netbeans 6.7 generates.
当我生成一个新页面时,它会生成一个包含以下JSP代码:
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>
然而,当我尝试查看它时,出现Missing Body Element错误。这非常令人沮丧。
However when I attempt to view it an error comes up with "Missing Body Element." This is quite frustrating.
我花了很多天在谷歌搜索解决方案,并且除了死胡同之外什么都没有。当Netbeans尝试切换到设计视图时,会在错误日志中记录:
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)
有人有解决方案吗?
推荐答案
事实证明这是一个被忽略的问题,暂时不会修复。
It turns out that this is a problem that is being ignored, and won't be fixed for a while.
这篇关于“缺少身体元素”使用Netbeans上的Visual Web Pack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!