trouble with checkbox!!!!!!!!!!!

Friends , I have a component tabset with tabs. on tab1 I have a component checkbox he is checked. When I go for tab2 the component checkbox (tab1) is checked = false !!. Like solving?Thanks!I type from Brazil and you ?
[239 byte] By [jg1234a] at [2007-11-27 5:41:45]
# 1

Greetings from Orlando, Florida.

I had a similar situation which I resolved by storing the values in the SessionBean. If anyone has an easier way - please let me know.

In SessionBean:

--

private boolean checkBox1Checked;

public boolean getCheckBox1Checked() {

return this.checkBox1Checked;

}

public void setCheckBox1Checked(boolean checkBox1Checked) {

this.checkBox1Checked = checkBox1Checked;

}

In Page:

--

checkbox1_processValueChange((ValueChangeEvent event)) {

// Store value of checkbox in session bean

getSessionBean1().setCheckBox1Checked(getCheckBox1().isChecked());

return null;

}

public String tab1_action() {

reset_page();

return null;

}

public void reset_page() {

// reset all check box values here

getCheckBox1().setValue(String.valueOf(getSessionBean1().getCheckBox1Checked()) );

}

dsva at 2007-7-12 15:19:38 > top of Java-index,Development Tools,Java Tools...
# 2
Another possibility is to store checkbox value in some property in SessionBean1
zulua at 2007-7-12 15:19:38 > top of Java-index,Development Tools,Java Tools...
# 3
Do you mean bind the CheckBox disable property to a boolean in the SessionBean? I tried that method and couldn't get it to work. The checkbox always returned to enabled after the page was submitted. This is the reason for the reset_page function.
dsva at 2007-7-12 15:19:38 > top of Java-index,Development Tools,Java Tools...
# 4
Hi There,Is your checkbox bound to any database field? You might want to store the value of the checkbox in a field on the sessionbean. Also, This might be of help to
kish@suna at 2007-7-12 15:19:38 > top of Java-index,Development Tools,Java Tools...