myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davy Vermeir <>
Subject tabbedPane backing bean not updated with multiple tabs
Date Wed, 28 Feb 2007 16:24:55 GMT


I'm having a page with 2 components: a "save" button and a tabbedPane with
serverSideTabSwitch set to "true".
The tabbedpane contains 2 tabs and in each tab there is an inputfield whose
value is linked to a backing bean.

If the user enters a value in the input field of the first tab, then clicks
the second tab, enters a value in the input field of the second tab and then
clicks the "save" button, only the value entered in the last chosen tab is
set in the backing bean (and thus saved)

Is there a solution for this problem , so that the information in all tabs
is set in the backing bean (and also validated) ?

A snippet of my JSP:
<h:commandButton action="#{}" value="Save" />
<t:panelTabbedPane serverSideTabSwitch="true" >
	<t:panelTab id="tab1" label="Tab1">
		<h:inputText value="#{testtabBean.text1}"></h:inputText>
	<t:panelTab id="tab2" label="Tab2">
		<h:inputText value="#{testtabBean.text2}"></h:inputText>

My backing bean:

public class TestTabBean {
	private String text1;
	private String text2;
	public String getText1() {
		return text1;
	public void setText1(String text1) {
		this.text1 = text1;
	public String getText2() {
		return text2;
	public void setText2(String text2) {
		this.text2 = text2;
	public String save() {
		return null;

I'm using myfaces 1.1.4 and tomahawk 1.1.5-snapshot. 


View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message