此页面调用以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
2023-07-23 06:07

满意答案

你可以在这里办理登机手续

使用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

相关问答

更多

并排问题(Div side by side issue)

你的浮动属性应该不是中心和右边,希望它们并排移动它们。 Your float property should be left not center and right and hopefully that moves them side by side.

并排

应用float:left; 你们的两个div应该使它们站在一起。 Apply float:left; to both of your divs should make them stand side by side.

并排显示图像(display images side by side)

要使图像浮动,您必须指定元素的宽度并设置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; fl...

并排放置按钮(Place button side by side)

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 th...

Stackpanels并排(Stackpanels side by side)

如果需要解决方案,则将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 sta...

如何并排显示帖子?(How can I display posts side by side?)

试试这些: <?php $args = array( 'category_name' => 'featured', 'posts_per_page' => 4 ); $the_query = new WP_Query($args); ?> <?php if($the_query->have_posts()): ?> <div class="row featured-row"> <?php w...

并排显示2个按钮(Making 2 button display side by side)

你可以在这里办理登机手续 使用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)

您可以使用所需的数据填充对象,只需将它们添加到阵列中即可显示。 为此,您需要跟踪要添加的对象。 因此,您可以保留每次添加项目时递增的计数器,然后您可以使用此计数器选择要添加的对象。 一个简单的方法就是将所有项目(不仅仅是要显示的项目)存储在一个单独的数组中。 然后,您可以通过将addItem()函数更改为以下内容来添加要显示的项: var counter = 0; $scope.addItem = function() { $scope.items.push($scope.allIte...

如何并排显示数据(How to display the data side by side)

添加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; } <dl class="pair"> <dt>Date<...

按钮并排LinearLayout(Button side by side LinearLayout)

LinearLayout采用最长的孩子获胜方法。 在您的情况下,您有一个垂直方向的LinearLayout - 因此您将把小部件放在另一个之下。 你可以做的是在你的根LinearLayout中有另一个嵌套的LinearLayout,它具有水平方向,并且在这里有两个按钮。 这看起来像是这样的: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.and...

相关文章

更多

There is no Action mapped for namespace / and action name register.

jsp文件: &lt;%@ page language=&quot;java&quot; conten ...

Python解析XML文档

解析XML主要用到pytohn自带的XML库,其次还是lxml库 XML结构,先以一个相对简单但功能 ...

oracle数据库中NOT IN 和 NOT EXISTS为什查不到数据

SELECT GA.ADID, GA.ADNAME FROM GAP_AD GA WHERE e ...

page-taglib分页问题

想做个分页,用page-taglib怎么没反应,大家帮忙看下 online waiting..... ...

java面试题之XML部分(一)

xml有哪些解析技术?区别是什么?你在项目中用到了xml技术的哪些方面?如何实现的?用jdom解析xm ...

JSTL处理XML详解

JSTL XML processing 标签库:为程序设计者提供了基本的对 XML 格式文件的操作 被 ...

XML视频教程

PHP学习一本通.pdf PHP公益培训第3部-040-XML Xpath快速解析.wmv PHP公益 ...

JDOM读取XML文件问题

1.XML文件 &lt;?xml version=&quot;1.0&quot; encoding= ...

最新问答

更多

如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)

请尝试以下方法: $messages = $user->contact_messages()->paginate(10); Try the following: $messages = $user->contact_messages()->paginate(10);

linux的常用命令干什么用的

linux和win7不一样,win7都图形界面,都是用鼠标来操作打开,解压,或者关闭。而linux是没有图形界面的,就和命令提示符一样的一个文本框,操作linux里的文件可没有鼠标给你用,打开文件夹或者解压文件之类的操作都要通过linux常用命令。

由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)

它创建了这些视图: 'auth/login.blade.php', 'auth/register.blade.php', 'auth/passwords/email.blade.php', 'auth/passwords/reset.blade.php', 'layouts/app.blade.php', 'home.blade.php' 并修改这些文件: 'Http/Controllers/HomeController.php', 'routes/web.php' 如果使用--views

如何交换返回集中的行?(How to swap rows in a return set?)

您可以使用特殊的CASE表达式进行ORDER BY如下所示: SELECT * FROM table ORDER BY CASE id WHEN 3 THEN 8 WHEN 8 THEN 3 ELSE id END You can ORDER BY using a special CASE expression like this: SELECT * FROM table ORDER BY CASE id WHEN 3 THEN 8 WHEN 8 THEN 3 ELSE id END

在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)

我建议你制作一个新的TableView Cell,在这个newTableViewCell中,加载第2节中的所有单元格,然后为newTableViewCell提供边框。 但如果您不想这样做,那么您可以使用以下代码: @property(strong,nonatomic) CAShapeLayer* borderPath; -(void)viewDidLayoutSubviews{ [_borderPath removeFromSuperlayer]; UIView *viewToGiveBord

使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)

出于一些奇怪的原因,我现在发现了一个不同的问题, Boost.Spirit SQL语法/词法分析失败 ,其中提供了一些其他解决方案来进行空格跳过。 一个更好的! 以下是根据建议重新编写的示例代码: #include #include #include #include #include #incl

Java中的不可变类(Immutable class in Java)

1.如果我只有final变量的课程? 这会让你远离但不是全部。 这些变量的类型也需要是不可变的。 考虑一下 class MyImmutableClass { // final variable, referring to a mutable type final String[] arr = { "hello" }; // ... } 这允许有人做 myImmutableObject.arr[0] = "world"; 并有效地改变你的不可变类的对象。 此外,建议禁

WordPress发布查询(WordPress post query)

如果你想要在div中包含所有帖子: post_parent) { $myposts = get_posts('numberposts=10&tag=medical&order=DESC'); echo ' '; foreach ($myposts as $post): ?>

如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)

我不确定哪个是MySQL的正确答案,因为它本身还不支持IPv6地址格式(尽管“ WL#798:MySQL IPv6支持 ”表明它将在MySQL v6.0中,当前文档不支持)。 不过,你建议的人建议去2 * BIGINT,但要确保他们是UNSIGNED。 在IPv6的/ 64地址边界处有一种自然分割(因为/ 64是最小的网格块大小),这将与其很好地对齐。 I'm not sure which is the right answer for MySQL given that it doesn't y

是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)

您可以使用Object.keys和Array#find来获取匹配value的key 。 const letters = {a:'26',b:'25',c:'24',d:'23',e:'22',f:'21',g:'20',h:'19',i:'18',j:'17',k:'16',l:'15',m:'14',n:'13',o:'12',p:'11',q:'10',r:'9',s:'8',t:'7',u:'6',v:'5',w:'4',x:'3',y:'2',z:'1'}; function sw