This content has been marked as final.
Show 2 replies
-
1. Re: h:selectBooleanCheckbox rerender problem
pvito Jan 18, 2012 5:27 AM (in response to hhoehn)Hi, Harald
May be next code be helpful
<h:form>
<h:selectBooleanCheckbox id="check1_id" value="#{myBeen.check1}"/>
<a4j:commandButton id="Refresh_id1" actionListener="#{myBeen.check1Change}" value="Refresh1" render="check1_id"/>
</h:form>
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;
@ManagedBean
@SessionScoped
public class MyBeen {
public void check1Change(ActionEvent event){
check1 = !check1;
}
public Boolean getCheck1() {
return check1;
}
public void setCheck1(Boolean check1) {
this.check1 = check1;
}
}
Regards, Vitaliy
-
2. Re: h:selectBooleanCheckbox rerender problem
hhoehn Jan 18, 2012 9:50 AM (in response to pvito)Thanks for your answer/solution. That fix the problem. But i think its only a workaround but it works.