gpt4 book ai didi

oracle-adf - 需要帮助修复 ADF 中的 selectonechoice 错误

转载 作者:行者123 更新时间:2023-12-02 03:50:44 27 4
gpt4 key购买 nike

我有一个具有三个值的 selectonechoice:A、B、C,但我在其更改事件中遇到以下错误:

<SimpleSelectOneRenderer> <_getSelectedIndex> Could not find selected item matching value "B" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=soc1]

我的 selectonechoice 配置为:

<af:selectOneChoice label="Condition Codes :" id="soc1"
valueChangeListener="#{myManageBean.onCondCodeChg}"
binding="#{myManageBean.propConditionCode}"
autoSubmit="true" valuePassThru="true"
unselectedLabel="Please Select"">
<f:selectItems value="#{myManageBean.conditionCodes}" id="si1"/>
</af:selectOneChoice>

请帮忙!!!!我哪里错了?

最佳答案

问题是因为即使在设置值之后,它也会以某种方式被空值覆盖。

对我来说,在调用 setter 并设置值后,通过在相应的 bean 中使用 component.resetValue() 解决了这个问题。

关于oracle-adf - 需要帮助修复 ADF 中的 selectonechoice 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14439295/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com