1 Reply Latest reply on May 5, 2007 1:44 PM by demetrio812

    Binding opened attr of simpleTogglePanel

    demetrio812 Apprentice

      Hi,
      I bound the opened attribute of simpleTogglePanel to remember the state (the value is bound to a value of a session managed bean) but it doesn't work.

      That's the code:

      <rich:simpleTogglePanel switchType="ajax" opened="#{gAgenti.filtroAperto}" label="Cerca">
      ...
      </rich:simpleTogglePanel>
      


      A workaround is that:
      <rich:simpleTogglePanel switchType="ajax" opened="#{gAgenti.filtroAperto}" label="Cerca">
       <a4j:support event="onclick">
       <f:setPropertyActionListener value="#{!gAgenti.filtroAperto}" target="#{gAgenti.filtroAperto}" />
       </a4j:support>
      ...
      </rich:simpleTogglePanel>
      


      Is that the right behaviour?

      Thanks

      Demetrio Filocamo