myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject f:selectItems value property
Date Thu, 14 Sep 2006 13:52:46 GMT
iI f:selectItems the propery value must be set with a bean property
of return type SelectItem[]. Is this not correct?


I do the following and get an exception

class Sell {
SelectItem[] getArticleConditionOptions()


  <f:selectItems value="#{sell.articleConditionOptions}" />

generates a nexception

Caused by: java.lang.IllegalArgumentException: Value is no String
and component _idJsp6:_idJsp13with path: {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /sell.jsp][Class: javax.
faces.component.html.HtmlForm,Id: _idJsp6][Class: javax.faces.
component.html.HtmlSelectOneMenu,Id: _idJsp13]} does not have a
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.

View raw message