1
<p:outputPanel>
<h:selectOneRadio value="#{myBean.favColor1}">
<f:selectItem itemValue="Red" itemLabel="Color1 - Red" />
<f:selectItem itemValue="Green" itemLabel="Color1 - Green" />
<f:selectItem itemValue="Blue" itemLabel="Color1 - Blue" />
</h:selectOneRadio>
<p:ajax update="picker,#{myBean.clientId}"/>
</p:outputPanel>
我需要更新一個組件,其ID是以編程方式生成的。如何更新從後臺bean生成的ID
謝謝,單獨工作很好,但打破了其他自動完成組件。我需要弄清楚。 – Ravi
不客氣。是的,這是一個完全不同的問題。如果你喜歡,請隨時提出一個新問題。 – BalusC
BalusC,我已經混合了你對這個問題的兩個答案(http://stackoverflow.com/questions/8797287/is-conditional-rendering-of-components-possible-inside-datatable-without-updatin/8957536# 8957536)。請發表您對解決方案的看法。謝謝! – Ravi