It's not a secret anymore!
The moose likes JSF and the fly likes Navigation not working due due SelectOneMenu object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Navigation not working due due SelectOneMenu object" Watch "Navigation not working due due SelectOneMenu object" New topic

Navigation not working due due SelectOneMenu object

Christophe Basse

Joined: Jun 07, 2006
Posts: 10
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
I agree. Here's the link:
subject: Navigation not working due due SelectOneMenu object
It's not a secret anymore!