Hi,

I seem to be stuck in a bug of the tree table. This is my scenario:

- The (tree) table contains several rows.
- The rows can contain objects of different types, rendering is determined by "rendered"-attribute.

example data:

Root
+ Header 1
  + Details 1
+ Header 2
  + Details 2

public class BackingBean {
 Class1 {
   type = "header";
 }

 Class2 {
   type = "detail";
   public void myAction(ActionEvent event) {
   }
 }
}

The problem starts when using a commandButton in the "Details" rows. The actionListener points to "myAction" of class "Class2". When I look at a tree like the one of the example above I have two buttons, but - unfortunately - they both point to the same object, i.e. "Details 2". This definitely seems to be a bug: I saw that the rendered id of my buttons in the source code of the html is exactly the same. Aren't they supposed to be different?

Does anyone know the problem or the solution?

Thanks,

Christopher

Reply via email to