• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Navigation not working due due SelectOneMenu object

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic