Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem if pass integer value for selectOneChoice

766581May 18 2010 — edited May 18 2010
Hello, i hope you will help me.

I have selectOneChoice:

<af:selectOneChoice label="" immediate="true" id="posOznakaI" valuePassThru="true" autoSubmit="true" value="#{pageFlowScope.someValueInt}"
inlineStyle="width:50px;">
<af:selectItem value="1" label="Label1" id="id1"/>
<af:selectItem value="2" label="Label2" id="id2"/>

This selectOneChoice cannot find value 1 because it is integer. How I can conver it to String. someValueInt is integer as well. What i can do?
I got err:
<SimpleSelectOneRenderer><_getSelectedIndex> Could not find selected item matching value "1" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=posOznakaI]
But if i putt something else insted of 1 it works, but i need exectly 1.

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2010
Added on May 18 2010
6 comments
1,220 views