myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "urswagner@bluemail.ch" <urswag...@bluemail.ch>
Subject SelectItem value property of type Integer
Date Thu, 25 Jan 2007 17:05:37 GMT

Hello

In f:selectItems in get a strange exception.

Must the value property of type String? This is a bit strange 
because in the examples also
value of type Integer is allowed. I think it should also be 
allowed.

Caused by: java.lang.IllegalArgumentException: Value is no String 
and component _idJsp0:_idJsp1with path: {Component-Path : [Class: 
javax.faces.component.UIViewRoot,ViewId: /sellarticle.jsp][Class: 
javax.faces.component.html.HtmlForm,Id: _idJsp0][Class: javax.faces.
component.html.HtmlSelectOneMenu,Id: _idJsp1]} does not have a 
Converter
	at org.apache.myfaces.shared_impl.renderkit.RendererUtils.
getConvertedStringValue(RendererUtils.java:536)
	at org.apache.myfaces.shared_impl.renderkit.RendererUtils.
getConvertedStringValue(RendererUtils.java:555)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.
renderSelectOptions(HtmlRendererUtils.java:397)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.
internalRenderSelect(HtmlRendererUtils.java:297)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.
renderMenu(HtmlRendererUtils.java:251)
	at org.apache.myfaces.shared_impl.renderkit.html.
HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:54)


Mime
View raw message