Adelmo Erick santos created RF-12808:
----------------------------------------

             Summary: tabPanel execute="@none" don't work on switching tabs
                 Key: RF-12808
                 URL: https://issues.jboss.org/browse/RF-12808
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-panels-layout-themes
    Affects Versions: 4.3.0.Final
         Environment: Mojarra 2.1.17
Tomcat 7
Richfaces 4.3.0.Final and Richfaces 4.3.1-Snapshot
            Reporter: Adelmo Erick santos
            Priority: Minor


Hi guys, The code Snip below shows my problem. When I switch between tabs the 
values are submitted even with execute="@none".

The Page:
{code}
<!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:rich="http://richfaces.org/rich";
   xmlns:a4j="http://richfaces.org/a4j"; >
   
   <h:head>
   </h:head>
   <h:body>
                <h:form>
                        <rich:tabPanel switchType="ajax">
                                <rich:tab header="Tab1" execute="@none">
                                        <h:inputText 
value="#{testTabExecuteNoneMBean.valor1}"/>
                                        Valor 2: <h:outputText 
value="#{testTabExecuteNoneMBean.valor2}"/>
                                </rich:tab>
                                <rich:tab header="Tab2" execute="@none">
                                        <h:inputText 
value="#{testTabExecuteNoneMBean.valor2}"/> 
                                        Valor 1: <h:outputText 
value="#{testTabExecuteNoneMBean.valor1}"/>
                                </rich:tab>
                        </rich:tabPanel>
                </h:form>
        </h:body>
</html>
{code}

The MBean:

{code}
package br.com.becker.test;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped
public class TestTabExecuteNoneMBean {
        private String valor1;
        private String valor2;
        
        public String getValor1() {
                return valor1;
        }
        
        public void setValor1(String valor1) {
                this.valor1 = valor1;
        }
        public String getValor2() {
                return valor2;
        }
        public void setValor2(String valor2) {
                this.valor2 = valor2;
        }
}
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to