こんにちは、私は次のようsnipplesを持っている値が表示されませんユーザーリストをselectOneMenuは
私には正常に見えるが、私は常に、次のメッセージorg.apache.myfaces.shared.util.SelectItemsIterator hasNext
WARNING: ValueExpression #{SimController.userList} of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/pSim.xhtml][Class: org.apache.myfaces.custom.document.Document,Id: appId][Class: org.apache.myfaces.custom.document.DocumentBody,Id: appBodyId][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_t][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_1u][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_1v][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_1z][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_20][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: j_id_28][Class: javax.faces.component.UISelectItems,Id: j_id_2a]} does not reference an Object of type SelectItem, array, Iterable or Map, but of type: null
org.apache.myfaces.shared.renderkit.html.HtmlGridRendererBase renderChildren
WARNING: PanelGrid {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/pSim.xhtml][Class: org.apache.myfaces.custom.document.Document,Id: appId][Class: org.apache.myfaces.custom.document.DocumentBody,Id: appBodyId][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_t][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_1u][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_1v][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_1z][Class: javax.faces.component.html.HtmlPanelGrid,Id: j_id_20] Location: /pages/planung/inc/buttonStripBottomSimul.xhtml at line 3 and column 55} has not enough children. Child count should be a multiple of the columns attribute.
メニューは、HTMLページに表示されますが、それはある
[[email protected], [email protected], [email protected], [email protected], [email protected]]
:HTMLは過ぎて彼らは前に、すなわち、できるだけ最新の瞬間空の。
これはなぜですか?
ご協力いただきありがとうございます。 @baluscがすでに指摘したようにあなたは私が#{pSimController.details.Id}
だろうと思いid
にアクセスできるかどうか、にfaceletから<f:selectItems value="#{SimController.getUserList(id)}"
を試してみてください
あなたはどこにリストを印刷していますか?私はそれのためのコードが表示されません。 これは、SimControllerにuserListのゲッターがないためですか? – vvtx
これは上記のSimControllerのgetUserListです...私は何かが不足していますか? – Viking
ゲッターはメソッド引数をとらない。あなたは 'public List getUserList(String Id)'を持っていますが、 'public list getUserList()'メソッドが必要です。 –
BalusC