So. I have a selectBooleanCheckbox in my JSF web application.
<h:form id="settings">
<div class="col-xs-8">
<label for="settings:check1" class="control-label">Email
reports</label>
</div>
<div class="col-xs-4 text-center">
<h:selectBooleanCheckbox id="check1" class="js-switch"
valueChangeListener="#{companyBean.emailReportsChange()}"
type="checkbox" value="#{companyBean.settingsEmail}">
<p:ajax event="change" update="settings" />
</h:selectBooleanCheckbox>
</div>
</h:form>
This is working, the problem is.
Before submit look like this Very well
after submit ajax look like this Very bad
Why is this hapenning? After I submit the boolean change well, the method in bean is working fine. But I lost my style of my boolean checkbox
Instead of using PrimeFaces <p:ajax>
i already used <f:ajax>
. Same result.