1 Reply Latest reply on Sep 18, 2009 6:02 AM by nbelaevski

    simpletogglepanel is always opened when inside a datalist

    laintscher

      I updated from richfaces 3.3.0 to rf 3.3.1 due to a IE bug with the modalpanel, but since then all simpletogglepanels which are inside a datalist are rendered open, although I set the opened="false" attribute. RF 3.3.2CR1 has the same problem. Has anyone else experienced this problem and found a solution?

      Best Regards
      Andreas Langer


        • 1. Re: simpletogglepanel is always opened when inside a datalis
          nbelaevski

          Hi Andreas,

          That's a known issue of iteration components in JSF - saved state is reset before rendering, so the information that component has been closed is gone. You should bind "opened" attribute to some property of iteration variable, like this:

          <rich:dataTable var="item">
           ...
           <rich:simpleTogglePanel opened="#{item.openedProperty}">
           ...