[richfaces-issues] [JBoss JIRA] Created: (RF-10607) TabPanel:wrong model updates when switching between pagens in ajax and server mode

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Thu Feb 24 09:20:05 EST 2011


TabPanel:wrong model updates when switching between pagens in ajax and server mode
----------------------------------------------------------------------------------

                 Key: RF-10607
                 URL: https://issues.jboss.org/browse/RF-10607
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-panels-layout-themes
    Affects Versions: 4.0.0.Milestone6
            Reporter: Ilya Shaikovsky
            Assignee: Nick Belaevski
            Priority: Critical


All the switchable panels should be checked after fix additionally.

	<h:form>
		<rich:tabPanel switchType="ajax">
			<rich:tab header="Overview">
				<h:inputText value="#{userBean.name}" /> 
		
			</rich:tab>
			<rich:tab header="JSF 2 and RichFaces 4">
				<h:inputText value="#{userBean.email}" /> 
			
	
			</rich:tab>
			<rich:tab header="123123">
				<h:inputText value="#{userBean.age}" />
			
		</rich:tab>
		</rich:tabPanel>
	</h:form>

bean code:

    public String getEmail() {
        System.out.println("UserBean.getEmail()");
        return email;
    }

    public void setEmail(String email) {
        System.out.println("UserBean.setEmail()");

        this.email = email;
    }
......

1)Initial rendering :
UserBean.getName() in log only. OK

2)change value in inputu and switching to second tab:
UserBean.getEmail() in log only- FAIL. New value for first tab should be put to model

3) return back to first tab changing the input at second:
UserBean.getName()
UserBean.setName()
UserBean.getName()
in log - FAIL! first two calls should be for the field at the second tab (decode and model update) and only third one should be getName.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list