《缺失的身体元素》使用 Netbeans 上的 Visual Web Pack
目前,我遇到了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,这是一个被忽视的问题,而且暂时不会得到解决。
It turns out that this is a problem that is being ignored, and won't be fixed for a while.