File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Navigation not working due due SelectOneMenu object

Christophe Basse
Greenhorn

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: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>
<hutputText 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Navigation not working due due SelectOneMenu object