You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ferescalona13 <fe...@gmail.com> on 2012/10/31 18:25:50 UTC

Problem with commandButton is not redirectioning

Good afternoon. i'm having an issue with p:commandButton is not
redirectioning to the next page as it should be doing it...

I have eight SelectBooleanButton with value "No" and one commandButton (with
label "Estadisticas") which his disabled property is set to true by default.

This is the way the page looks in the first place (tha page is called
[b]statisticsEventUserCategory.xhtml[/b])

http://old.nabble.com/file/p34625307/1a.png 

The only way to enable the commandButton "Estadisticas" is to click on any
of the SelectBooleanButton and set the value of the SelectBooleanButton
selected to "Yes".

This is the way the page looks when i click any of the SelectBooleanButton
(only one of the SelectBooleanButton can be "Yes", if you click on another
SelectBooleanButton his value is set to Yes and the previously selected is
set his value to No)

http://old.nabble.com/file/p34625307/1b.png 

The problem is when i click on the "Estadisticas" commandButton.  It should
be redirectioning to another page
([b]statisticsEventUserCategoryGraph.xhtml[/b]) and it's not doing it, (in
fact is redirectioning to the same page and the page looks again as the
first image above).

The action Attribute of this commandButton calls a function in a Managed
Bean that returns a String which is the From Outcome value to redirect to
the next page.

This is the Navigation rule from one page to another 

http://old.nabble.com/file/p34625307/1c.png 

This is the code of the commandButton 

<p:commandButton id="actionButtonGraph"
disabled="#{actionStatisticsEventUserCategory.submit}"
action="${actionStatisticsEventUserCategory.graph}"
value="#{msg['msg_statistics']}" icon="ui-icon-image"
ajax="false"></p:commandButton>


I made a test deleting the disabled attribute of the commandButton and the
button redirects correctly


<p:commandButton id="actionButtonGraph"

action="${actionStatisticsEventUserCategory.graph}"
value="#{msg['msg_statistics']}" icon="ui-icon-image"
ajax="false"></p:commandButton>


But, as you can see, i need the disabled attribute, because that's the way i
validate the button is enabled only if one of the SelectBooleanButton is set
to "Yes".

Here is my HTML code from statisticsEventUserCategory.xhtml



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>#{msg['msg_title']}</title>
	<link rel="stylesheet" type="text/css" href="css/clouseOutStyles.css" />
</h:head>
<h:body>
	<f:view>
		<div id="headerFooter">
			<ui:include src="header.xhtml" />
			<div id="centralBody">

				<h:form id="form">

					<p:panel header="#{msg['msg_statistics']}">
						<p:panel header="#{msg['msg_configuringCriteria']}"
							id="panelCriteria">
							<h:panelGrid columns="8" cellpadding="10">

								<h:outputLabel value="#{msg['msg_success']}" />
								<p:selectBooleanButton id="criteriaSuccess"
									value="#{actionStatisticsEventUserCategory.criteria.success}"
									onLabel="#{msg['msg_yes']}" offLabel="#{msg['msg_no']}"
									onIcon="ui-icon-check" offIcon="ui-icon-close">
									<p:ajax listener="#{actionStatisticsEventUserCategory.success()}"
									
update="criteriaComunication,criteriaProcess,criteriaInformation,criteriaPosTheo,criteriaDataBase,criteriaSuccesfulAudit,criteriaCrypto,actionButtonGraph"
/>
								</p:selectBooleanButton>

								<h:outputLabel value="#{msg['msg_communication']}" />
								<p:selectBooleanButton id="criteriaComunication"
									value="#{actionStatisticsEventUserCategory.criteria.comunication}"
									onLabel="#{msg['msg_yes']}" offLabel="#{msg['msg_no']}"
									onIcon="ui-icon-check" offIcon="ui-icon-close">
									<p:ajax
listener="#{actionStatisticsEventUserCategory.comunication()}"
									
update="criteriaSuccess,criteriaProcess,criteriaInformation,criteriaPosTheo,criteriaDataBase,criteriaSuccesfulAudit,criteriaCrypto,actionButtonGraph"
/>
								</p:selectBooleanButton>

								<h:outputLabel value="#{msg['msg_process']}" />
								<p:selectBooleanButton id="criteriaProcess"
									value="#{actionStatisticsEventUserCategory.criteria.process}"
									onLabel="#{msg['msg_yes']}" offLabel="#{msg['msg_no']}"
									onIcon="ui-icon-check" offIcon="ui-icon-close">
									<p:ajax listener="#{actionStatisticsEventUserCategory.process()}"
									
update="criteriaSuccess,criteriaComunication,criteriaInformation,criteriaPosTheo,criteriaDataBase,criteriaSuccesfulAudit,criteriaCrypto,actionButtonGraph"
/>
								</p:selectBooleanButton>

								<h:outputLabel value="#{msg['msg_information']}" />
								<p:selectBooleanButton id="criteriaInformation"
									value="#{actionStatisticsEventUserCategory.criteria.information}"
									onLabel="#{msg['msg_yes']}" offLabel="#{msg['msg_no']}"
									onIcon="ui-icon-check" offIcon="ui-icon-close">
									<p:ajax
listener="#{actionStatisticsEventUserCategory.information()}"
									
update="criteriaSuccess,criteriaComunication,criteriaProcess,criteriaPosTheo,criteriaDataBase,criteriaSuccesfulAudit,criteriaCrypto,actionButtonGraph"
/>
								</p:selectBooleanButton>

								<h:outputLabel value="#{msg['msg_postheo']}" />
								<p:selectBooleanButton id="criteriaPosTheo"
									value="#{actionStatisticsEventUserCategory.criteria.posTheo}"
									onLabel="#{msg['msg_yes']}" offLabel="#{msg['msg_no']}"
									onIcon="ui-icon-check" offIcon="ui-icon-close">
									<p:ajax listener="#{actionStatisticsEventUserCategory.posTheo()}"
									
update="criteriaSuccess,criteriaComunication,criteriaProcess,criteriaInformation,criteriaDataBase,criteriaSuccesfulAudit,criteriaCrypto,actionButtonGraph"
/>
								</p:selectBooleanButton>

								<h:outputLabel value="#{msg['msg_dataBase']}" />
								<p:selectBooleanButton id="criteriaDataBase"
									value="#{actionStatisticsEventUserCategory.criteria.dataBase}"
									onLabel="#{msg['msg_yes']}" offLabel="#{msg['msg_no']}"
									onIcon="ui-icon-check" offIcon="ui-icon-close">
									<p:ajax listener="#{actionStatisticsEventUserCategory.dataBase()}"
									
update="criteriaSuccess,criteriaComunication,criteriaProcess,criteriaInformation,criteriaPosTheo,criteriaSuccesfulAudit,criteriaCrypto,actionButtonGraph"
/>
								</p:selectBooleanButton>

								<h:outputLabel value="#{msg['msg_successfulAudit']}" />
								<p:selectBooleanButton id="criteriaSuccesfulAudit"
								
value="#{actionStatisticsEventUserCategory.criteria.succesfulAudit}"
									onLabel="#{msg['msg_yes']}" offLabel="#{msg['msg_no']}"
									onIcon="ui-icon-check" offIcon="ui-icon-close">
									<p:ajax
listener="#{actionStatisticsEventUserCategory.succesfulAudit()}"
									
update="criteriaSuccess,criteriaComunication,criteriaProcess,criteriaInformation,criteriaPosTheo,criteriaDataBase,criteriaCrypto,actionButtonGraph"
/>
								</p:selectBooleanButton>

								<h:outputLabel value="#{msg['msg_crypto']}" />
								<p:selectBooleanButton id="criteriaCrypto"
									value="#{actionStatisticsEventUserCategory.criteria.crypto}"
									onLabel="#{msg['msg_yes']}" offLabel="#{msg['msg_no']}"
									onIcon="ui-icon-check" offIcon="ui-icon-close">
									<p:ajax listener="#{actionStatisticsEventUserCategory.crypto()}"
									
update="criteriaSuccess,criteriaComunication,criteriaProcess,criteriaInformation,criteriaPosTheo,criteriaDataBase,criteriaSuccesfulAudit,actionButtonGraph"
/>
								</p:selectBooleanButton>

							</h:panelGrid>
						</p:panel>
						


						<br />

						<div id="leftButton">

							<p:commandButton id="actionButtonGraph"
								disabled="#{actionStatisticsEventUserCategory.submit}"
								action="${actionStatisticsEventUserCategory.graph}"
								value="#{msg['msg_statistics']}" icon="ui-icon-image"
ajax="false"></p:commandButton>

						</div>

					</p:panel>

				</h:form>


			</div>
			<ui:include src="footer.xhtml" />
		</div>
		<ui:include src="mainMenu.xhtml" />
	</f:view>
</h:body>
</html>[/code]

The Managed Bean Code


package com.novared.postheo.web.client.closeOut.actions;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.context.FacesContext;

import org.primefaces.model.chart.CartesianChartModel;
import org.primefaces.model.chart.ChartSeries;
import org.primefaces.model.chart.LineChartSeries;
import org.primefaces.model.chart.PieChartModel;

import com.novared.postheo.web.client.beans.NumberOfEventeInDay;
import com.novared.postheo.web.client.beans.NumberOfEventsInCategoryBean;
import com.novared.postheo.web.client.beans.UserConfugurationBean;
import com.novared.postheo.web.client.beans.UserCriteriaConfigurationBean;
import com.novared.postheo.web.client.closeOut.facades.StatisticsFacade;
import com.novared.postheo.web.client.constants.ServiceConstants;

@ManagedBean
public class ActionStatisticsEventUserCategory {
	
	private UserCriteriaConfigurationBean criteria = new
UserCriteriaConfigurationBean();

	private Boolean submit;
	
	private Boolean temp;
	
	
	
	public ActionStatisticsEventUserCategory() {
		
		// TODO Auto-generated constructor stub
		
		this.submit = true;
		
		
	}

	public String graph(){
		
		return "graph";
	}	
	
	public void success(){

		temp = criteria.getSuccess();
		criteria = new UserCriteriaConfigurationBean();
		criteria.setSuccess(temp);

		setSubmit(!(criteria.getSuccess() || criteria.getComunication() ||
criteria.getProcess() || criteria.getInformation() || criteria.getPosTheo()
|| criteria.getDataBase() || criteria.getSuccesfulAudit() ||
criteria.getCrypto()));

	}

	public void comunication(){

		temp = criteria.getComunication();
		criteria = new UserCriteriaConfigurationBean();
		criteria.setComunication(temp);

		setSubmit(!(criteria.getSuccess() || criteria.getComunication() ||
criteria.getProcess() || criteria.getInformation() || criteria.getPosTheo()
|| criteria.getDataBase() || criteria.getSuccesfulAudit() ||
criteria.getCrypto()));

	}

	public void process(){

		temp = criteria.getProcess();
		criteria = new UserCriteriaConfigurationBean();
		criteria.setProcess(temp);

		setSubmit(!(criteria.getSuccess() || criteria.getComunication() ||
criteria.getProcess() || criteria.getInformation() || criteria.getPosTheo()
|| criteria.getDataBase() || criteria.getSuccesfulAudit() ||
criteria.getCrypto()));

	}

	public void information(){

		temp = criteria.getInformation();
		criteria = new UserCriteriaConfigurationBean();
		criteria.setInformation(temp);

		setSubmit(!(criteria.getSuccess() || criteria.getComunication() ||
criteria.getProcess() || criteria.getInformation() || criteria.getPosTheo()
|| criteria.getDataBase() || criteria.getSuccesfulAudit() ||
criteria.getCrypto()));

	}

	public void posTheo(){

		temp = criteria.getPosTheo();
		criteria = new UserCriteriaConfigurationBean();
		criteria.setPosTheo(temp);

		setSubmit(!(criteria.getSuccess() || criteria.getComunication() ||
criteria.getProcess() || criteria.getInformation() || criteria.getPosTheo()
|| criteria.getDataBase() || criteria.getSuccesfulAudit() ||
criteria.getCrypto()));

	}

	public void dataBase(){

		temp = criteria.getDataBase();
		criteria = new UserCriteriaConfigurationBean();
		criteria.setDataBase(temp);

		setSubmit(!(criteria.getSuccess() || criteria.getComunication() ||
criteria.getProcess() || criteria.getInformation() || criteria.getPosTheo()
|| criteria.getDataBase() || criteria.getSuccesfulAudit() ||
criteria.getCrypto()));

	}

	public void succesfulAudit(){

		temp = criteria.getSuccesfulAudit();
		criteria = new UserCriteriaConfigurationBean();
		criteria.setSuccesfulAudit(temp);

		setSubmit(!(criteria.getSuccess() || criteria.getComunication() ||
criteria.getProcess() || criteria.getInformation() || criteria.getPosTheo()
|| criteria.getDataBase() || criteria.getSuccesfulAudit() ||
criteria.getCrypto()));

	}

	public void crypto(){

		temp = criteria.getCrypto();
		criteria = new UserCriteriaConfigurationBean();
		criteria.setCrypto(temp);

		setSubmit(!(criteria.getSuccess() || criteria.getComunication() ||
criteria.getProcess() || criteria.getInformation() || criteria.getPosTheo()
|| criteria.getDataBase() || criteria.getSuccesfulAudit() ||
criteria.getCrypto()));

	}
	
	public String getCategorySelected(){
		
		if (criteria.getSuccess())
			return ServiceConstants.criteriaSuccess;
		if (criteria.getComunication())
			return ServiceConstants.criteriaComunication;
		if (criteria.getCrypto())
			return ServiceConstants.criteriaCrypto;
		if (criteria.getDataBase())
			return ServiceConstants.criteriaBaseDatos;
		if (criteria.getInformation())
			return ServiceConstants.criteriaInformation;
		if (criteria.getPosTheo())
			return ServiceConstants.criteriaPostheo;
		if (criteria.getProcess())
			return ServiceConstants.criteriaProceso;
		if (criteria.getSuccesfulAudit())
			return ServiceConstants.criteriaSuccess1;
		
		return null;
	}
	
	public UserCriteriaConfigurationBean getCriteria() {
		return criteria;
	}

	public void setCriteria(UserCriteriaConfigurationBean criteria) {
		this.criteria = criteria;
	}
	

	public Boolean getSubmit() {
		return submit;
	}

	public void setSubmit(Boolean submit) {
		this.submit = submit;
	}

	public Boolean getTemp() {
		return temp;
	}

	public void setTemp(Boolean temp) {
		this.temp = temp;
	}
	
	
}



And the faces-config.xml


<?xml version="1.0" encoding="UTF-8"?>

<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
	version="2.0">
	<application>
		<locale-config>
			<default-locale>es</default-locale>
			<supported-locale>en</supported-locale>
		</locale-config>
		<resource-bundle>
			<base-name>com.novared.postheo.web.client.languages.language</base-name>
			<var>msg</var>
		</resource-bundle>
	
<message-bundle>com.novared.postheo.web.client.languages.messages</message-bundle>
	</application>
	<managed-bean>
		<description>Validadores del Action Configuring</description>
		<managed-bean-name>validatorConfiguring</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ValidatorConfiguring</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionConfiguring</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionConfiguring</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<description>Bean del Usuario en sesion</description>
		<managed-bean-name>userBean</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.beans.UserBean</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionCommerce</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionCommerce</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionDailyRecord</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionDailyRecord</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionEventMonitoring</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionEventMonitoring</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionHistRecordClousure</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionHistRecordClousure</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionHistRecordSell</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionHistRecordSell</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionIndex</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionIndex</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionMainMenu</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionMainMenu</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionMonitoring</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionMonitoring</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionRecord</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionRecord</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionSellPoint</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionSellPoint</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionServer</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionServer</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionPos</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.posweb.actions.ActionPos</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionPosWeb</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.posweb.actions.ActionPosWeb</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>validatorPosWeb</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.posweb.actions.ValidatorPosWeb</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionPosWebPos</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.posweb.actions.ActionPosWebPos</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionPosWebSuccess</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.posweb.actions.ActionPosWebSuccess</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionStatistics</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionStatistics</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<managed-bean>
		<managed-bean-name>actionStatisticsMonitoring</managed-bean-name>
	
<managed-bean-class>com.novared.postheo.web.client.closeOut.actions.ActionStatisticsMonitoring</managed-bean-class>
		<managed-bean-scope>request</managed-bean-scope>
	</managed-bean>
	<factory>
	
<exception-handler-factory>com.novared.postheo.web.client.exceptions.ShowcaseExceptionHandlerFactory</exception-handler-factory>
	</factory>
	<navigation-rule>
		<display-name>index.xhtml</display-name>
		<from-view-id>/index.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>welcome</from-outcome>
			<to-view-id>/welcome.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>mainMenu.xhtml</display-name>
		<from-view-id>/mainMenu.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>record</from-outcome>
			<to-view-id>/record.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>mainMenu.xhtml</display-name>
		<from-view-id>/mainMenu.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>monitoring</from-outcome>
			<to-view-id>/monitoring.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>mainMenu.xhtml</display-name>
		<from-view-id>/mainMenu.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statistics</from-outcome>
			<to-view-id>/statistics.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>record.xhtml</display-name>
		<from-view-id>/record.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>historicalRecord</from-outcome>
			<to-view-id>/historicalRecord.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>configuring.xhtml</display-name>
		<from-view-id>/configuring.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>configuringFail</from-outcome>
			<to-view-id>/configuring.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>monitoringAplication.xhtml</display-name>
		<from-view-id>/monitoringAplication.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>eventMonitoring</from-outcome>
			<to-view-id>/eventMonitoring.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>monitoringAplication.xhtml</display-name>
		<from-view-id>/monitoringAplication.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>configuring</from-outcome>
			<to-view-id>/configuring.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>monitoring.xhtml</display-name>
		<from-view-id>/monitoring.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>commerces</from-outcome>
			<to-view-id>/monitoringCommerces.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>monitoring.xhtml</display-name>
		<from-view-id>/monitoring.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>services</from-outcome>
			<to-view-id>/monitoringServices.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>monitoring.xhtml</display-name>
		<from-view-id>/monitoring.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>applications</from-outcome>
			<to-view-id>/monitoringAplication.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>monitoringCommerces.xhtml</display-name>
		<from-view-id>/monitoringCommerces.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>sellPoints</from-outcome>
			<to-view-id>/monitoringSellPoint.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>index.xhtml</display-name>
		<from-view-id>/index.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>index</from-outcome>
			<to-view-id>/index.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecord.xhtml</display-name>
		<from-view-id>/historicalRecord.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>commercesSell</from-outcome>
			<to-view-id>/historicalRecordCommerceSell.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordCommerceSell.xhtml</display-name>
		<from-view-id>/historicalRecordCommerceSell.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>sellPoints</from-outcome>
			<to-view-id>/historicalRecordSellPointSell.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>configuring.xhtml</display-name>
		<from-view-id>/configuring.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>configurationSuccess</from-outcome>
			<to-view-id>/welcome.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>record.xhtml</display-name>
		<from-view-id>/record.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>commerces</from-outcome>
			<to-view-id>/dailyRecordCommerce.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>dailyRecordCommerce.xhtml</display-name>
		<from-view-id>/dailyRecordCommerce.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>sellPoints</from-outcome>
			<to-view-id>/dailyRecordSellPoint.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>mainMenu.xhtml</display-name>
		<from-view-id>/mainMenu.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>payments</from-outcome>
			<to-view-id>/payments.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>payments.xhtml</display-name>
		<from-view-id>/payments.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>posweb</from-outcome>
			<to-view-id>/posweb.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecord.xhtml</display-name>
		<from-view-id>/historicalRecord.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>commercesClousure</from-outcome>
			<to-view-id>/historicalRecordCommerceClousure.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordCommerceClousure.xhtml</display-name>
		<from-view-id>/historicalRecordCommerceClousure.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>sellPoints</from-outcome>
			<to-view-id>/historicalRecordSellPointClousure.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>mainMenu.xhtml</display-name>
		<from-view-id>/mainMenu.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>monitoringClient</from-outcome>
			<to-view-id>/monitoringClient.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>monitoringClient.xhtml</display-name>
		<from-view-id>/monitoringClient.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>commerces</from-outcome>
			<to-view-id>/monitoringCommerces.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>monitoringClient.xhtml</display-name>
		<from-view-id>/monitoringClient.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>configuring</from-outcome>
			<to-view-id>/configuring.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>posweb.xhtml</display-name>
		<from-view-id>/posweb.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>poswebSuccess</from-outcome>
			<to-view-id>/poswebSuccess.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordSellPointSell.xhtml</display-name>
		<from-view-id>/historicalRecordSellPointSell.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>lotNumber</from-outcome>
			<to-view-id>/historicalRecordLotNumberSell.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordSellPointSell.xhtml</display-name>
		<from-view-id>/historicalRecordSellPointSell.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>businessDay</from-outcome>
			<to-view-id>/historicalRecordBusinessDaySell.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordBusinessDaySell.xhtml</display-name>
		<from-view-id>/historicalRecordBusinessDaySell.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>historicalRecordSell</from-outcome>
			<to-view-id>/historicalRecordSellBDay.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordLotNumberSell.xhtml</display-name>
		<from-view-id>/historicalRecordLotNumberSell.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>historicalRecordSell</from-outcome>
			<to-view-id>/historicalRecordSellLot.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordSellPointClousure.xhtml</display-name>
		<from-view-id>/historicalRecordSellPointClousure.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>lotNumber</from-outcome>
			<to-view-id>/historicalRecordLotNumberClousure.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordSellPointClousure.xhtml</display-name>
		<from-view-id>/historicalRecordSellPointClousure.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>businessDay</from-outcome>
			<to-view-id>/historicalRecordBusinessDayClousure.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordLotNumberClousure.xhtml</display-name>
		<from-view-id>/historicalRecordLotNumberClousure.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>historicalRecordClousure</from-outcome>
			<to-view-id>/historicalRecordClousureLot.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>historicalRecordBusinessDayClousure.xhtml</display-name>
		<from-view-id>/historicalRecordBusinessDayClousure.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>historicalRecordClousureBday</from-outcome>
			<to-view-id>/historicalRecordClousureBDay.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>dailyRecordSellPoint.xhtml</display-name>
		<from-view-id>/dailyRecordSellPoint.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>dailyRecord</from-outcome>
			<to-view-id>/dailyRecord.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statistics.xhtml</display-name>
		<from-view-id>/statistics.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsMonitoring</from-outcome>
			<to-view-id>/statisticsMonitoring.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statistics.xhtml</display-name>
		<from-view-id>/statistics.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsTransactions</from-outcome>
			<to-view-id>/statisticsTransactions.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>header.xhtml</display-name>
		<from-view-id>/header.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>welcome</from-outcome>
			<to-view-id>/welcome.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statistics.xhtml</display-name>
		<from-view-id>/statistics.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsRecord</from-outcome>
			<to-view-id>/statisticsRecord.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statistics.xhtml</display-name>
		<from-view-id>/statistics.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsEvent</from-outcome>
			<to-view-id>/statisticsEvents.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsRecord.xhtml</display-name>
		<from-view-id>/statisticsRecord.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsHistoricalRecord</from-outcome>
			<to-view-id>/statistiscHistoricalRecord.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsRecord.xhtml</display-name>
		<from-view-id>/statisticsRecord.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsDailyRecord</from-outcome>
			<to-view-id>/statisticsDailyRecord.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>mainMenu.xhtml</display-name>
		<from-view-id>/mainMenu.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsClient</from-outcome>
			<to-view-id>/statisticsClient.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsClient.xhtml</display-name>
		<from-view-id>/statisticsClient.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsHistoricalRecord</from-outcome>
			<to-view-id>/statistiscHistoricalRecord.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsClient.xhtml</display-name>
		<from-view-id>/statisticsClient.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsDailyRecord</from-outcome>
			<to-view-id>/statisticsDailyRecord.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statistiscHistoricalRecord.xhtml</display-name>
		<from-view-id>/statistiscHistoricalRecord.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>commercesSell</from-outcome>
			<to-view-id>/statisticsHistoricalRecordCommerces.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsHistoricalRecordCommerces.xhtml</display-name>
		<from-view-id>/statisticsHistoricalRecordCommerces.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>sellPoints</from-outcome>
			<to-view-id>/statisticsHistoricalRecordSellPoint.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsHistoricalRecordCommerces.xhtml</display-name>
		<from-view-id>/statisticsHistoricalRecordCommerces.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>graph</from-outcome>
			<to-view-id>/statisticsHistoricalRecordCommerceGraph.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsHistoricalRecordSellPoint.xhtml</display-name>
		<from-view-id>/statisticsHistoricalRecordSellPoint.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>graph</from-outcome>
			<to-view-id>/statisticsHistoricalRecordSellPointGraph.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statistiscHistoricalRecord.xhtml</display-name>
		<from-view-id>/statistiscHistoricalRecord.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>graph</from-outcome>
			<to-view-id>/statisticsHistoricalRecordGraph.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsDailyRecord.xhtml</display-name>
		<from-view-id>/statisticsDailyRecord.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>graph</from-outcome>
			<to-view-id>/statisticsDailyRecordGraph.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsDailyRecord.xhtml</display-name>
		<from-view-id>/statisticsDailyRecord.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>commercesSell</from-outcome>
			<to-view-id>/statisticsDailyRecordCommerces.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsDailyRecordCommerces.xhtml</display-name>
		<from-view-id>/statisticsDailyRecordCommerces.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>sellPoints</from-outcome>
			<to-view-id>/statisticsDailyRecordSellPoint.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsDailyRecordCommerces.xhtml</display-name>
		<from-view-id>/statisticsDailyRecordCommerces.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>graph</from-outcome>
			<to-view-id>/statisticsDailyRecordCommerceGraph.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsDailyRecordSellPoint.xhtml</display-name>
		<from-view-id>/statisticsDailyRecordSellPoint.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>graph</from-outcome>
			<to-view-id>/statisticsDailyRecordSellPointGraph.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsEvents.xhtml</display-name>
		<from-view-id>/statisticsEvents.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsEventUser</from-outcome>
			<to-view-id>/statisticsEventUser.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsEvents.xhtml</display-name>
		<from-view-id>/statisticsEvents.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statisticsEventCategory</from-outcome>
			<to-view-id>/statisticsEventCategory.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsEventUser.xhtml</display-name>
		<from-view-id>/statisticsEventUser.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>statistics</from-outcome>
			<to-view-id>/statisticsEventUserGraph.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsEventUser.xhtml</display-name>
		<from-view-id>/statisticsEventUser.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>categories</from-outcome>
			<to-view-id>/statisticsEventUserCategory.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>index.xhtml</display-name>
		<from-view-id>/index.xhtml</from-view-id>
		<navigation-case>
			<to-view-id>/poswebpos.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>header.xhtml</display-name>
		<from-view-id>/header.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>index</from-outcome>
			<to-view-id>/index.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsEventCategory.xhtml</display-name>
		<from-view-id>/statisticsEventCategory.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>graph</from-outcome>
			<to-view-id>/statisticsEventCategoryGraph.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>
	<navigation-rule>
		<display-name>statisticsEventUserCategory.xhtml</display-name>
		<from-view-id>/statisticsEventUserCategory.xhtml</from-view-id>
		<navigation-case>
			<from-outcome>graph</from-outcome>
			<to-view-id>/statisticsEventUserCategoryGraph.xhtml</to-view-id>
		</navigation-case>
	</navigation-rule>

</faces-config>

I'm Using MyFaces 21, Primefaces 3.4.1 and Apache Tomcat 7.0 Server

Thanks
-- 
View this message in context: http://old.nabble.com/Problem-with-commandButton-is-not-redirectioning-tp34625307p34625307.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Problem with commandButton is not redirectioning

Posted by Mike Kienenberger <mk...@gmail.com>.
This really isn't a question specific to MyFaces.   The primefaces
forums might be a more appropriate place since you are dealing with
primefaces components.

However,

Have you set a breakpoint on setSubmit() to see what is calling it?

My guess is that either actionStatisticsEventUserCategory has a scope
that loses the changes, or that you have more than one object calling
setSubmit().

You should also add some kind of messages component to the page to
display any errors that might be generated.