2011-04-20 62 views
0

rich:tab是否允許reRender屬性?如果是 - 當選擇了rich:選項卡時,它是否會重新選擇該選項卡上的組件? 我試圖在點擊選項卡後重新渲染一個rich:comboBox,以便在reRendered時顯示它的defaultLabel。但是,rich:comboBox顯示了之前選擇的值。嘗試使用UIInput變量綁定組件並重置其值。沒有太大的成功。 我的富人:組合包含在一個像這樣的代碼中。rich:tab是否允許reRender屬性?如果是 - 當選擇了rich:選項卡時,它是否會重新選擇該選項卡上的組件?

<rich:panel style="width:100%;" header="XXXXXXX" id="outerpanel"> 
<fieldset style="width: 98%"><legend>Role DSDSD</legend> 
<h:panelGrid id="roleAcoster" columns="1" columnClasses="alignTop" border="0"  cellpadding="30" cellspacing="4"> 
<a4j:outputPanel id="a4panel"> 
<rich:panel header="Available Roles" width="100%" id="xPanel"> 
<h:panelGrid columns="3" border="0" columnClasses="alignTop" cellpadding="3"> 
    <h:outputText value="New York" /> 
<rich:comboBox value="#{bean.selectedRole}" 
disabled="#{bean.show}" 
valueChangeListener="#{bean.roleSelected}" 
binding="#{bean.roleComboComponent}" 
id="availableCombo" immediate="true" defaultLabel="Select Role" 
enableManualInput="false" width="204px"> 
<f:selectItems 
    value="#{bean.selectItems['AvailableRoles']}" /> 
<f:attribute name="selectItems" 
    value="#{bean.selectItems['AvailableRoles']}" /> 
    <a4j:support event="onchange" ajaxSingle="true" 
    onsubmit="#{rich:component('wait_div')}.show()" 
    oncomplete="#{rich:component('wait_div')}.hide()" 
    reRender="role_button_add,roles_panel" /> 
</rich:comboBox> 
<rich:message for="availableCombo" errorClass="errorMessage" /> 
    </h:panelGrid> 
</rich:panel> 
</a4j:outputPanel> 
</h:panelGrid> 
</fieldset> 
</rich:panel> 

謝謝!

回答

相關問題