2017-08-16 8 views
0

こんにちは、私は次のよう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)}"を試してみてください

+0

あなたはどこにリストを印刷していますか?私はそれのためのコードが表示されません。 これは、SimControllerにuserListのゲッターがないためですか? – vvtx

+0

これは上記のSimControllerのgetUserListです...私は何かが不足していますか? – Viking

+1

ゲッターはメソッド引数をとらない。あなたは 'public List getUserList(String Id)'を持っていますが、 'public list getUserList()'メソッドが必要です。 – BalusC

答えて

0

バイキング

0

私はコメントから質問を閉じることができないので...ここゲッターは、メソッドの引数を取ることはありません@BalusC

にクレジットがあります。あなたはpublic List getUserList(String Id)を持っていますが、public List getUserList()メソッドが必要です。 - BalusC 7 minutes ago ago

ありがとうございました

関連する問題