I have this code above which works perfectly when i select some of the items on him... The a4j:support works fine and rerender my another field correctly... The problem is if i choose one item, and then i back to "noSelectionLabel"... When i do this for some reason my a4j:support dont work, i dont get into my method "setarFormulario" and i dont rerender my another field...
<s:decorate template="layout/form.xhtml">
<ui:define name="label">Evento:</ui:define>
<h:selectOneMenu value="#{home.instance.evento}" required="true">
<s:selectItems value="#{eventoService.obterTodos()}" var="evento" label="#{messages[evento.nome]}" noSelectionLabel="#{messages[ br.com.message.NoSelection ]}" />
<s:convertEntity />
<a4j:support event="onchange" action="#{home.setarFormulario}" reRender="camposFormulario" ajaxSingle="true" />
</h:selectOneMenu>
</s:decorate>
哪怕是选择不选的劳工,我怎么能够走进我的手法? 那么,我的家事就应该取消。