Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<;h:输入>;标记库支持命名空间:http://java.sun.com/jsf/html,但没有为name:input定义标记_Jsf_Primefaces - Fatal编程技术网

<;h:输入>;标记库支持命名空间:http://java.sun.com/jsf/html,但没有为name:input定义标记

<;h:输入>;标记库支持命名空间:http://java.sun.com/jsf/html,但没有为name:input定义标记,jsf,primefaces,Jsf,Primefaces,我正在尝试实现jsf+primefaces+twitter引导: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"

我正在尝试实现jsf+primefaces+twitter引导:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.prime.com.tr/ui"
>
<h:head>
    <title>IMPORT JSF SET ATTRIBUTES</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="" />
    <meta name="author" content="" />

    <!-- Le styles -->
    <h:outputStylesheet name="css/bootstrap.css" />
    <h:outputStylesheet name="css/bootstrap.min.css" />
    <h:outputStylesheet name="css/override.css" />

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

    <!-- Le fav and touch icons
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
-->
</h:head>
<h:body>
    <div class="navbar navbar-inverse navbar-static-top">
        <div class="navbar-inner navbar-large">
            <div class="container">
                <a class="brand" href="#">Name</a>
                <ul class="nav">
                    <li><a href="#buy">Link</a></li>
                    <li><a href="#about">Link</a></li>
                </ul>
                <form class="navbar-form pull-left">
                    <div class="input-append offset1">
                        <h:input class="span5" placeholder="put search terms here"
                            type="text" />
                        <button class="btn" type="submit">
                            <i class="icon-search"></i>
                        </button>
                    </div>
                </form>
                <ul class="nav pull-right">
                    <li class="dropdown"><a class="dropdown-toggle"
                        data-toggle="dropdown" href="#"> How to <b class="caret"></b>
                    </a>
                        <ul class="dropdown-menu">
                            <li class="nav-header">Link</li>
                            <li><a href="#">Link 1</a></li>
                            <li><a href="#">Link 2</a></li>
                            <li><a href="#">Link 3</a></li>
                            <li class="divider"></li>
                            <li class="nav-header">Link</li>
                            <li><a href="#">Link 1</a></li>
                            <li><a href="#">Link 2</a></li>
                            <li><a href="#">Link 3</a></li>
                        </ul></li>
                    <li><a href="#login">Login</a></li>
                    <li><a href="#register">Signup</a></li>
                </ul>
            </div>
        </div>
    </div>

    <div class="container">[Template content will be inserted here]</div>

    <footer>
    <ul class="inline text-center">
        <li>© 2013</li>
    </ul>
    </footer>
    <!--/.fluid-container-->

    <!-- Le javascript
================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <h:outputScript name="js/jquery-1.7.2.min.js" />
    <h:outputScript name="js/bootstrap.min.js" />
    <h:outputScript name="js/jquery.dataTables.min.js" />
    <h:outputScript name="js/bootstrap.js" />

</h:body>
</html>

导入JSF集合属性
    • 链接
    • 链接
[模板内容将插入此处]
  • ©2013年
然而,我得到:

<h:input> Tag Library supports namespace: http://java.sun.com/jsf/html, but no tag was defined for name: input
标记库支持命名空间:http://java.sun.com/jsf/html,但没有为name:input定义标记

我真的很感激你的回答

我有个问题,你确定你指的是h:input而不是h:inputtext吗

抱歉->编辑:您正在执行以下操作:


这是纯html,不适用于JSF 如果你想使用JSF的魔力,你必须这样做:

            <h:form>
                    <h:inputText value="#{hereIsYourManagedBean.field}" />
                    <h:commandButton action="#{hereIsYourManagedbean.action}">
                         DoJsfAction
                    </h:commandButton >

            </h:form>

DoJsfAction


JSFServlet将捕获您的操作,呈现输入表单,将其放入ManagedBean字段中,调用ManagedBean的方法,最后根据您的方法创建响应。主要是另一个由faces config.xml配置的xhtml站点,我有一个问题,你确定你指的是h:input而不是h:inputtext吗

抱歉->编辑:您正在执行以下操作:


这是纯html,不适用于JSF 如果你想使用JSF的魔力,你必须这样做:

            <h:form>
                    <h:inputText value="#{hereIsYourManagedBean.field}" />
                    <h:commandButton action="#{hereIsYourManagedbean.action}">
                         DoJsfAction
                    </h:commandButton >

            </h:form>

DoJsfAction


JSFServlet将捕获您的操作,呈现输入表单,将其放入ManagedBean字段中,调用ManagedBean的方法,最后根据您的方法创建响应。大多数情况下,JSF中不存在另一个由faces config.xml配置的xhtml站点。使用一些特定的输入标记,例如:
h:inputHidden
h:inputText
h:inputSecret
h:inputExtarea
h:input
标记在JSF中不存在。使用一些特定的输入标记,例如:
h:inputHidden
h:inputText
h:inputSecret
h:inputExtarea
My maven项目有
2.1.3\u 01
h:input
标记在JSF中不存在。您在哪个JSF书籍/教程/资源中了解到
?还是这只是随机猜测?你到底为什么认为它会起作用?无论如何,将标签文档添加到书签中:此外,我还将使用一个体面的IDE和体面的JSF插件。Eclipse/Netbeans/IntelliJ可能已经警告了未知标记,并且在输入时还显示了一个自动完成建议列表。顺便说一句,模板中还有其他问题。JSF组件中的IE条件注释和HTML5属性不会以这种方式工作,但这是不同问题的主题(在这里已经被问了好几次)。我的maven项目有
2.1.3_01
h:input
标记在JSF中不存在。您在哪个JSF书籍/教程/资源中了解了
?还是这只是随机猜测?你到底为什么认为它会起作用?无论如何,将标签文档添加到书签中:此外,我还将使用一个体面的IDE和体面的JSF插件。Eclipse/Netbeans/IntelliJ可能已经警告了未知标记,并且在输入时还显示了一个自动完成建议列表。顺便说一句,模板中还有其他问题。JSF组件中的IE条件注释和HTML5属性不会以这种方式工作,但这是不同问题的主题(在这里之前已经问过多次)。请重写您的答案。目前,它看起来像是一个评论,甚至侮辱了OP(和未来的读者)。对不起,我习惯于在JSF 1.2中开发,我不完全确定,在JSF 2.0/2.1中是否存在这样的组件。你的答案的问题在第一行:愚蠢的问题。有了这句话,即使身体其他部分都是对的,你的回答也是冒犯性的。如果你不能回答问题,最好不要回答。Stack Overflow不像一个杂乱的讨论论坛,在那里你可以在黑暗中发布猜测/拍摄作为“答案”(回复)。在这里,应该使用评论(请注意,你只有在拥有至少50个声誉的情况下才能在别人的帖子上发表评论,所以首先开始发布好的答案;))顺便说一句,
d