- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用所有 jsf 2.2 新命名空间
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsp/jstl/core">
HTTP Status 500 - Elements with namespace http://xmlns.jcp.org/jsf/html may not have attributes in namespace http://xmlns.jcp.org/jsf. Namespace http://xmlns.jcp.org/jsf is intended for otherwise non-JSF-aware markup, such as <input type="text" jsf:id > It is not valid to have <h:commandButton jsf:id="button" />.
<h:selectOneMenu class="form-control"
id="selectOlhos" jsf:value="#{corpoController.corpo.corOlhos}">
<f:selectItem itemLabel="Escolha" itemValue=""></f:selectItem>
<f:selectItem itemLabel="Verdes Claros" itemValue="Verdes Claros"></f:selectItem>
<f:selectItem itemLabel="Verdes Escuros" itemValue="Verdes Escuros"></f:selectItem>
<f:selectItem itemLabel="Castanhos Claros" itemValue="Castanhos Claros"></f:selectItem>
<f:selectItem itemLabel="Castanhos Escuros" itemValue="Castanhos Escuros"></f:selectItem>
</h:selectOneMenu>
最佳答案
Elements with namespace http://xmlns.jcp.org/jsf/html may not have attributes in namespace http://xmlns.jcp.org/jsf. Namespace http://xmlns.jcp.org/jsf is intended for otherwise non-JSF-aware markup, such as <input type="text" jsf:id > It is not valid to have <h:commandButton jsf:id="button" />.
jsf:xxx
<h:xxx>
中的属性元素。
jsf:xxx
属性只能用于纯 HTML 元素,例如
<div>
.
jsfxxx
<h:xxx>
不支持属性元素。
<h:selectOneMenu ... jsf:value="...">
<h:selectOneMenu ... value="...">
<h:selectOneMenu>
作为所谓的
passthrough element ,那么你应该使用纯 HTML
<select>
反而。
<select ... jsf:value="...">
关于jsf - 命名空间为 http ://xmlns. jcp.org/jsf/html 的元素可能没有命名空间 http ://xmlns. jcp.org/jsf 中的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49214453/
我正在使用所有 jsf 2.2 新命名空间 但是我尝试将组件 selectOneMenu 与 selectItem 一起使用多少我收到此错误: HTTP Status 500 - Elements
我收到这个错误: java.lang.ClassCastException: org.apache.jcp.xml.dsig.internal.dom.DOMReference cannot be c
据我了解,Oracle 正在将其 Oracle JDK 迁移到每 6 个月发布一次功能版本,并每 3 年左右发布一次 Oracle JDK LTS。 Oracle JDK 在 2019 年 1 月之后
刚刚阅读 Kathy“Sierra/Bert Bates:JSCP Java6 学习指南”,发现了相互矛盾的模拟考试问题: 在其中一个自测问题中,正确答案是“代码无法编译”,因为代码中没有 impor
我有一个在 tomcat 8 上运行的 Maven webapp 项目。如果我使用旧的命名空间 http://java.sun.com/jsf/html 它工作正常,但是使用新的命名空间,在浏览器上查
我更改了标题(无法从 EAR 加载持久性单元),因为我认为问题是,我不能使用“http://xmlns.jcp.org/xml/ns/persistence”网址。相反,我必须使用“http://ja
这个问题已经有答案了: NLS missing message: CANNOT_FIND_FACELET_TAGLIB (3 个回答) 已关闭 8 年前。 我正在尝试在 jsf 中创建自定义标签,这是
我正在尝试在 Jboss 7.1.1.Final 上使用 JSF 2.2.2 我遵循了此链接中的解决方案 1: http://www.mastertheboss.com/jsf/installing-
我正在使用 gradle 构建我的多模块项目。在我的一个类(class)中,我有以下代码段。 private XMLSignatureFactory factory = XMLSignatureFac
我尝试将 Glassfish 4.0 与 Java EE 7 XML 命名空间结合使用来测试下面的示例。 Title
pom.xml文件 com.sun.faces jsf-impl 2.2.0-m08 provided com.sun.faces jsf-api
执行时突然抛出错误: org.xml.sax.SAXParseExceptionpublicId: http://xmlns.jcp.org/xml/ns/persistence/persistenc
我有这个: 我明白了: 为什么是 xmlns:f="http://xmlns.jcp.org/jsf/core"标签未呈现? 我在 Netbeans 7.3 上使用 J
我正在阅读来自 http://docs.oracle.com/javaee/7/tutorial/doc/jsf-facelets005.htm#GIQZR 的 Java EE 7 教程 在我的 ID
我正在将 jsf 2.2 升级到 jsf 2.3, 使用 wildfly 11.0.0 Beta 作为服务器。 我按照本网站上的说明进行操作。 http://arjan-tijms.omnifaces
我正在使用 jersey 部署一个 Restful Web 服务。我正在阅读本教程并执行说明: http://www.oracle.com/webfolder/technetwork/tutorial
我是一名优秀的程序员,十分优秀!