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!

how to select default value from select one choice when page.jsff load

807910May 22 2011 — edited May 23 2011
hello all, i'm newbie have little problem

i've problem with soc (selectOneChoice)
in this case i 'wanna select default value from af:SelectOneChoice (select first selectItem) when page is done loading

<af:selectOneChoice label="Jenis Bahan :" id="soc1"
autoSubmit="true"
valueChangeListener="#{WHStockSetReleaseBean.cekJenisBahan}"
binding="#{WHStockSetReleaseBean.v_jenisBahan}">
*<af:selectItem label="GBB" value="GBB" id="si2"/>* ====> i'wanna select this value for default value (select first selectItem)
<af:selectItem label="GBP" value="GBP" id="si1"/>
</af:selectOneChoice>

so anyone help me, to solve this problem

thx
agungdmt
This post has been answered by SantoshVaza on May 23 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2011
Added on May 22 2011
6 comments
164 views