Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Navigation not working due due SelectOneMenu object  RSS feed

Christophe Basse
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:dataTable rendered="true" headerClass="tdHeader" binding="#{MonitoringBean.detailedDataTable}" value="#{MonitoringBean.eventDetailedList}" var="event" width="100%">
<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}" />
<hutputText styleClass="#{MonitoringBean.colorStyle}" value="#{MonitoringBean.currentDate}" rendered="true" />

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}" />

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!