setting values in selectOneMenu

hi all

i was working with samples at that time i was able t set values in menu now when used in my application its not working. i erased it so not able to refer it can anyone suggest. my code is

In jsp form

<h:selectOneMenu id="rs">

<f:selectItems value="#{FundGroupBean.reviewStatus}"/>

</h:selectOneMenu>

in bean

public javax.faces.model.SelectItem[] getReviewStatus(){

javax.faces.model.SelectItem[] reviewStatus ={

new javax.faces.model.SelectItem(new Integer(1),"Pending"),

new javax.faces.model.SelectItem(new Integer(2),"Pending Reviewed"),

new javax.faces.model.SelectItem(new Integer(3),"Reviewed")

};

return reviewStatus;

}

publicvoid setReviewStatus(String String){

reviewStatus=String;

}

the error message that i get is

Conversion Error setting value ''{0}'' for ''{1}''.

[1558 byte] By [my.doubtsa] at [2007-11-26 19:02:11]
# 1
Java Server Faces Forum is here: http://forum.java.sun.com/forum.jspa?forumID=427List of Forums: http://forum.java.sun.com/index.jspa?tab=java
appy77a at 2007-7-9 20:47:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks but i tried it. it does not work. do you need to declare it in faces config
my.doubtsa at 2007-7-9 20:47:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
i think you must have a converter for the selectitem
jgalacambraa at 2007-7-9 20:47:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
hi.,thanks. do we need to declare in config file
my.doubtsa at 2007-7-9 20:47:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
yes we set the converter on faces-config
jgalacambraa at 2007-7-9 20:47:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
thanks but can you suggest me how to declarei also wanted to know that TLD does not support onload function.wat is the alternate function to overcome that
my.doubtsa at 2007-7-9 20:47:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...