-
1. Re: simpleTogglePanel and selectBooleanCheckbox are not work
ilya_shaikovsky Nov 12, 2008 4:34 AM (in response to saravvij)paste your code snippet. and what is your RF version?
-
2. Re: simpleTogglePanel and selectBooleanCheckbox are not work
saravvij Nov 12, 2008 5:28 AM (in response to saravvij)Using RF 3.2.1 and facelets
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:f="http://java.sun.com/jsf/core"
<ui:composition>
<a4j:form id="eForm" ajaxSubmit="true" reRender="name">
<rich:simpleTogglePanel opened="false" switchType="client"
label="#{content.miscellaneousHeader}" width="80%" height="90px">
<h:outputText value="#{content.publish}"></h:outputText>
<h:selectBooleanCheckbox id="publish" value="#{MyBean.published}"></h:selectBooleanCheckbox>
</rich:simpleTogglePanel>
</a4j:form>
</ui:define>
</ui:composition>
It works perfectly when I use rich:panel instead of toggle. -
3. Re: simpleTogglePanel and selectBooleanCheckbox are not work
ilya_shaikovsky Nov 12, 2008 7:44 AM (in response to saravvij)1) why you using ajaxSubmit="true" on your form?
2) I still not see in your code any submit controls. Do not simplify the code so much.