Hi guys,
Id like to reRender comboBox on ajax component event;
even using a4j:outputPanel it does not work
please find below a snippet code
<a4j:outputPanel id="combo_attribute">
<h:panelGrid columns="3" cellspacing="5">
<h:outputText value="attribute" />
<rich:comboBox selectFirstOnUpdate="false"
defaultLabel="Enter some value"
value="#{bean.attribute}" width="300">
<t:selectItems value="#{bean.allAttributes}" var="list" itemLabel="#{list.name}" itemValue="#{list.name}" />
<a4j:support event="onselect" reRender="choices"
action="#{bean.onSelectAttribute}">
</a4j:support>
</rich:comboBox>
<rich:message for="cAuthorized" />
</h:panelGrid>
</a4j:outputPanel>
<a4j:commandButton immediate="true" value="Reset all"
action="#{bean.resetAttributes}" reRender="combo_attribute" />
public void resetAttributes() {
attribute = null;
}
Hi,
I guess you say "not updated" because combos previous value is shown after update. Try making link ajaxSingle="true".