I have a form with several commandLink working correctly.
But when I introduce a SelectOneMenu object then the previous commandLinks are not working anymore
(page is refreshed according to faces-config.xml but submit methods are not called).
In example below, pauseRefresh method is not called anymore when the SelectOneMenu is introduced in the page.
jsp page :
<h:form id="Monitoring">
<h:commandLink action="#{MonitoringBean.pauseRefresh}" >
<h:graphicImage value="#{MonitoringBean.pauseButton}" style="border : 0" alt="#{MonitoringBean.pauseAltText}" />
</h:commandLink>
<h:dataTable rendered="true" headerClass="tdHeader" binding="#{MonitoringBean.detailedDataTable}" value="#{MonitoringBean.eventDetailedList}" var="event" width="100%">
<h:column>
<f:facet name="header">
<h:selectOneMenu id="modulefilter" value="#{MonitoringBean.moduleId}" valueChangeListener="#{MonitoringBean.moduleSelection}" onchange="submit();"immediate="true" rendered="true">
<f:selectItems value="#{MonitoringBean.moduleList}" />
</h:selectOneMenu>
</f:facet>
<h:outputText styleClass="#{MonitoringBean.colorStyle}" value="#{MonitoringBean.currentDate}" rendered="true" />
</h:column>
</h:datatable>
</h:form>
I also tried with only this code for the SelectOneMenu and I still have the problem :
<h:selectOneMenu id="modulefilter" value="#{MonitoringBean.moduleId}" rendered="true">
<f:selectItems value="#{MonitoringBean.moduleList}" />
</h:selectOneMenu>
Bean :
private
String pauseButton;
private String pauseAltText;
private StringmoduleId;
private HtmlDataTable detailedDataTable = new HtmlDataTable();
private ArrayList<Event> eventDetailedList = new ArrayList<Event>();
private StringmoduleId;
private ArrayList<SelectItem> moduleList = new ArrayList<SelectItem>();
If you need more information on the bean, just ask me
Thanks in advance
Christophe