5 Replies Latest reply on Mar 5, 2010 2:40 PM by Nick Belaevski

    Binding collection of panels

    adam kanicki Newbie

      I have in my backing bean this declaration

       

      protected List<HtmlPanel> panels;

       

      Then in bean's constructor I create panels. On the page I have this code:

       

       

      <a4j:repeat var="panel" value="#{roles.panels}">
                      <rich:panel binding="#{panel}">
                          <h:outputText value="#{panel} dupa"/>
                      </rich:panel>

      </a4j:repeat>

       

      In my backing beans I have method in which I try to hide panel with given id. But it not works. When I declare single panel in backing bean like this:

       

      protected HtmlPanel panel;

       

      and then call method it work, but it did not work on collection of panels. I don't know where is problem?