我有这样的:标签不渲染,而http://java.sun.com/jsf做工精细
<html
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
>
<h:selectOneRadio>
<f:selectItem value="1" itemValue="1" itemLabel="123"/>
<f:selectItem value="2" itemValue="2" itemLabel="321"/>
</h:selectOneRadio>
而且我得到这个:
<f:selectItem value="1" itemValue="1" itemLabel="123"></f:selectItem>
<f:selectItem value="2" itemValue="2" itemLabel="321"></f:selectItem>
<select name="j_idt5" size="1"></select>
为什么xmlns:f="http://xmlns.jcp.org/jsf/core"
标签无法呈现?
我在Netbeans 7.3上使用JBoss AS 7。
看起来问题是您没有使用JSF 2.2,所以您必须将名称空间定义为'xmlns:f =“http://java.sun.com/jsf/core”'。 –