Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 如何在adf中使用partialtriggers、selectOneRadio和inputText_Jsf_Oracle Adf_Jdeveloper - Fatal编程技术网

Jsf 如何在adf中使用partialtriggers、selectOneRadio和inputText

Jsf 如何在adf中使用partialtriggers、selectOneRadio和inputText,jsf,oracle-adf,jdeveloper,Jsf,Oracle Adf,Jdeveloper,我正在使用selectOneRadio选择哪个inputText可用。因此,我有一个变体: <af:selectOneRadio id="id1" autoSubmit="true" binding="#{page.bindingSelect}"

我正在使用selectOneRadio选择哪个inputText可用。因此,我有一个变体:

<af:selectOneRadio 
                                   id="id1"
                                   autoSubmit="true"
                                   binding="#{page.bindingSelect}"
                                   value="#{page.radioBtnValue}">
                  <af:selectItem label="show1" value="show1" />
                  <af:selectItem label="show2" value="show2"/>

<af:inputText id="id2" 
                              value="#{bindings.input1.inputValue}"                            
                              partialTriggers="id1"
                              binding="#{page.input1}" 
                              disabled="#{page.radioBtnValue!='show1'}">                                   
</af:inputText>
<af:inputText id="id3" 
                              value="#{bindings.input2.inputValue}"                            
                              partialTriggers="id1"
                              binding="#{page.input2}" 
                              disabled="#{page.radioBtnValue!='show2'}">                                   
</af:inputText> 
结果我 getInput1=null getInput2=null

但是,如果我没有使用partialTriggers,这个变体可以很好地工作,并且在db中输入正确的值

有人能帮忙吗? jdeveloper 10.1.3 谢谢

谢谢大家

对于我使用的更新atributes:

getMyInputText().setDisabled(true);
getMyInputText().setReadOnly(true);
AdfFacesContext.getCurrentInstance().addPartialTarget(getMyInputText());


它非常有用,值得一读。它消除了许多混乱。

你能发布命令按钮的文本吗?
getMyInputText().setDisabled(true);
getMyInputText().setReadOnly(true);
AdfFacesContext.getCurrentInstance().addPartialTarget(getMyInputText());