1 Reply Latest reply on Dec 4, 2007 3:39 PM by Sergey Smirnov

    Programatically adding richfaces components in Ajax request

    Tiago Gaspar Newbie

      Hi,
      I'm struggling with a very odd jsf behavior:
      In a panel component (let's say PanelGrid), I need to add dynamically more components. For example, every time a user clicks on a button, I want to programatically add a new component to the panel using Ajax. Ok so far, the thing is that sometimes a component that's already been added gets replaced by the new one. Very weired stuff.
      Searching the documentation I've fond this:
      "Any Ajax framework should not append or delete, but only replace elements on the page" (http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/ArchitectureOverview.html)

      I'm wondering if adding new components programatically using Ajax in a JSF page is really possible. Can you guys help out?

      Thanks,
      Tiago Gaspar