这是我的代码:可能有一些错误,但我做得对,我认为我的问题出在 Java 代码中,请您说明一下,我正在尝试渲染无线电值。
<p:selectOneRadio id="firstBill" value="#{myClass.myfee}" label="what to do?">
<f:verbatim>
<f:selectItems value="#{myClass.listMyFee}"/>
</f:verbatim>
</p:selectOneRadio>
@Name("myClass")
public class MyClass
{
private String fee;
private Map<String, String> listMyFee;
public Myclass(){
//constructor
listMyFee = new LinkedHashMap<String, String>();
listMyFee;.put("Yes", "Yes");
listMyFee;.put("No", "No");
}
public Map<String, String> getListMyFee()
{
return this.listMyFee;
}
get and set for fee are written