此页面调用以br为前缀的XML名称空间,但不存在taglibrary(This page calls for XML namespace declared with prefix br but no taglibrary exists)
我刚刚完成了Netbeans对Hibernate教程的介绍( http://netbeans.org/kb/docs/web/hibernate-webapp.html#01 ),我收到以下错误:“此页面调用用前缀声明的XML名称空间但是没有标签库存在“
现在,我在其他地方看到了一个类似的问题: http : //forums.sun.com/thread.jspa?threadID=5430327但答案没有在那里列出。 或者,如果是,那么我显然会错过它 - 将我的index.xhtml文件中的一行写成“ http://www.w3.org/1999/xhtml ”。 它也不能解释为什么,当我重新加载localhost:8080时,消息消失。
这是我的index.xhtml文件:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"> <ui:composition template="./template.xhtml"> <ui:define name="body"> <h:form> <h:commandLink action="#{filmController.previous}" value="Previous #{filmController.pageSize}" rendered="#{filmController.hasPreviousPage}"/> <h:commandLink action="#{filmController.next}" value="Next #{filmController.pageSize}" rendered="#{filmController.hasNextPage}"/> <h:dataTable value="#{filmController.filmTitles}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px"> <h:column> <f:facet name="header"> <h:outputText value="Title"/> </f:facet> <h:outputText value="#{item.title}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Description"/> </f:facet> <h:outputText value="#{item.description}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value=" "/&t; </f:facet> <h:commandLink action="#{filmController.prepareView}" value="View"/> </h:column> </h:dataTable> <br/> </h:form> </ui:define> </ui:composition> </html>
I just finished the Netbeans introduction to Hibernate tutorial ( http://netbeans.org/kb/docs/web/hibernate-webapp.html#01 ) and I am getting the following error: "This page calls for XML namespace declared with prefix br but no taglibrary exists"
Now, I have seen a similar question somewhere else: http://forums.sun.com/thread.jspa?threadID=5430327 but the answer is not listed there. Or, if it is, then I am clearly missing it -- line one of my index.xhtml file reads "http://www.w3.org/1999/xhtml". It also does not explain why, when I reload localhost:8080, the message disappears.
Here is my index.xhtml file:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"> <ui:composition template="./template.xhtml"> <ui:define name="body"> <h:form> <h:commandLink action="#{filmController.previous}" value="Previous #{filmController.pageSize}" rendered="#{filmController.hasPreviousPage}"/> <h:commandLink action="#{filmController.next}" value="Next #{filmController.pageSize}" rendered="#{filmController.hasNextPage}"/> <h:dataTable value="#{filmController.filmTitles}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px"> <h:column> <f:facet name="header"> <h:outputText value="Title"/> </f:facet> <h:outputText value="#{item.title}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Description"/> </f:facet> <h:outputText value="#{item.description}"/> </h:column> <h:column> <f:facet name="header"> <h:outputText value=" "/> </f:facet> <h:commandLink action="#{filmController.prepareView}" value="View"/> </h:column> </h:dataTable> <br/> </h:form> </ui:define> </ui:composition> </html>
原文:https://stackoverflow.com/questions/2561956
最满意答案
You can check in here
Use
form-group
class , and awesome iconhttps://plnkr.co/edit/RNjeqen9BED2hY1hWDRq?p=preview
Hope it help
相关问答
更多-
并排问题(Div side by side issue)[2022-01-06]
你的浮动属性应该不是中心和右边,希望它们并排移动它们。 Your float property should be left not center and right and hopefully that moves them side by side. -
并排
元素(Alignelements side by side)[2023-03-09]应用float:left; 你们的两个div应该使它们站在一起。 Apply float:left; to both of your divs should make them stand side by side.并排显示图像(display images side by side)[2024-03-07]
要使图像浮动,您必须指定元素的宽度并设置float属性。 CSS必须如下所示 .down_arrow{ display:block; background: url(../images/down_arrow.png) no-repeat left center; float:left; width:100px; } .up_arrow{ display:block; background: url(../images/up_arrow.png) no-repeat left center; float:l ...并排放置按钮(Place button side by side)[2023-01-05]
GridBagLayout是最复杂的布局。 如果你只是对齐几个按钮,我会推荐使用FlowLayout(默认)或BoxLayout。 但是,如果您想要使用GridBagLayout,而不是调整锚点,请将gridx调整为第二个按钮的值为1。 此外,不知道为什么你有一个gridy 3而不是gridy 0(除非有其他代码,你已经省略,使用gridy 0-2)。 Thanks akf, I have solved the problem by placing the flowLayout inside the gri ...Stackpanels并排(Stackpanels side by side)[2023-07-02]
如果需要解决方案,则将Stackpanel的宽度设置为300。 要么删除stackpnael(具有300宽度的那个),要么将该stackpanel内的Grid固定为300 You are setting the width of the Stackpanel as 300, if you want a solution. either remove the stackpnael (the one that has 300 width) or fix the Grid inside that stackpan ...如何并排显示帖子?(How can I display posts side by side?)[2022-05-09]
试试这些: 'featured', 'posts_per_page' => 4 ); $the_query = new WP_Query($args); ?> have_posts()): ?>并排显示2个按钮(Making 2 button display side by side)[2022-09-13]
你可以在这里办理登机手续 使用form-group类和真棒图标 https://plnkr.co/edit/RNjeqen9BED2hY1hWDRq?p=preview 希望它有所帮助 You can check in here Use form-group class , and awesome icon https://plnkr.co/edit/RNjeqen9BED2hY1hWDRq?p=preview Hope it help单击按钮应在angularjs中并排显示div(Onclick of a button should display the divs side by side in angularjs)[2022-03-05]
您可以使用所需的数据填充对象,只需将它们添加到阵列中即可显示。 为此,您需要跟踪要添加的对象。 因此,您可以保留每次添加项目时递增的计数器,然后您可以使用此计数器选择要添加的对象。 一个简单的方法就是将所有项目(不仅仅是要显示的项目)存储在一个单独的数组中。 然后,您可以通过将addItem()函数更改为以下内容来添加要显示的项: var counter = 0; $scope.addItem = function() { $scope.items.push($scope.allItems[co ...如何并排显示数据(How to display the data side by side)[2022-03-15]
添加clear: both到.pair dt - 这迫使它打破了界限 编辑/补充:我添加了一个片段,这是唯一的变化。 .pair { background-color: #ccc; } .pair dt { float: left; width: 90px; text-align: right; color: #999; } .pair dd { margin: 0 0 0 100px; }- Date ...
LinearLayout采用最长的孩子获胜方法。 在您的情况下,您有一个垂直方向的LinearLayout - 因此您将把小部件放在另一个之下。 你可以做的是在你的根LinearLayout中有另一个嵌套的LinearLayout,它具有水平方向,并且在这里有两个按钮。 这看起来像是这样的:相关文章
更多- There is no Action mapped for namespace / and action name register.
- Python解析XML文档
- oracle数据库中NOT IN 和 NOT EXISTS为什查不到数据
- page-taglib分页问题
- MyBatis XML 映射文件详解
- MyBatis XML 配置详解
- java面试题之XML部分(一)
- JSTL处理XML详解
- XML视频教程
- JDOM读取XML文件问题
最新问答
更多- Runnable上的NetworkOnMainThreadException(NetworkOnMainThreadException on Runnable)
- C ++ 11 + SDL2 + Windows:多线程程序在任何输入事件后挂起(C++11 + SDL2 + Windows: Multithreaded program hangs after any input event)
- AccessViolationException未处理[VB.Net] [Emgucv](AccessViolationException was unhandled [VB.Net] [Emgucv])
- 计算时间和日期差异(Calculating Time and Date difference)
- 以编程方式标签NSMutableAttributedString swift 4(Label NSMutableAttributedString programmatically swift 4)
- C#对象和代码示例(C# objects and code examples)
- 在python中是否有数学nCr函数?(Is there a math nCr function in python? [duplicate])
- 检索R中列的最大值和第二个最大值的行名(Retrieve row names of maximum and second maximum values of a column in R)
- 给定md5哈希时如何查找特定文件(How to find specific file when given md5 Hash)
- Python字典因某些原因引发KeyError(Python Dictionary Throwing KeyError for Some Reason)
- 如何让Joomla停止打开新标签中的每个链接?(How do I get Joomla to stop opening every link in a new tab?)
- DNS服务器上的NS记录不匹配(Mismatched NS records at DNS server)
- Python屏幕捕获错误(Python screen capture error)
- 如何在帧集上放置div叠加?(How to put a div overlay over framesets?)
- 页面刷新后是否可以保留表单(html)内容数据?(Is it possible to retain the form(html) content data after page refreshed?)
- 使用iTeardownMyAppFrame和iStartMyAppInAFrame在OPA5测试中重新启动应用程序超时(Restart app within OPA5 test using iTeardownMyAppFrame and iStartMyAppInAFrame timed out)
- 自动拆分文本内容到列(Automatically splitting text content into even columns)
- 在r中的循环中将模型名称分配给gbm.step(assigning model names to gbm.step in loop in r)
- 昆明哪里有电脑等级考试二级C培训?
- C ++模板实例化,究竟是什么意思?(C++ template instantiation, what exactly does it mean?)
- 帮助渲染来自fields_for的部分内容(Help to render a partial from fields_for)
- 将url.action作为json对象返回mvc(return url.action as json object mvc)
- 使用.BAT中的.application文件类型运行ac#Console App(Run a c# Console App with .application file type from a .BAT)
- 将bindingRedirect添加到.Net标准库(Adding a bindingRedirect to a .Net Standard library)
- Laravel版本升级会影响您的控制器吗?(Laravel version upgrade affects your controller?)
- imaplib.error:命令SEARCH在状态AUTH中非法,只允许在SELECTED状态(imaplib.error: command SEARCH illegal in state AUTH, only allowed in states SELECTED)
- 如何在eclipse debug impala前端
- 如何通过Ajax API处理多个请求?(How to handle multiple requests through an Ajax API? [closed])
- 使用Datetime索引来分析数据框数据(Using Datetime indexing to analyse dataframe data)
- JS 实现一个菜单效果