我有這樣的:標籤不渲染,而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」'。 –