Hi! I have a problem with the use getAttributes() method of the
UIComponent class.
Code of the method:
 public void printComponentTree2(UIComponent comp) {
     printComponentInfo(comp);

        // Get child components
       List complist =  (ArrayList)(comp.getAttributes().values());
        if (complist.size() > 0) {
            indent++;
        }
       Iterator<UIComponent> it= complist.iterator();
       while(it.hasNext()){
            printComponentTree(it.next());
       }


    }

The problem is the cast.
In console, the error:
 threw exception: java.lang.ClassCastException: java.util.HashMap
$Values cannot be cast to java.util.ArrayList java.util.HashMap$Values
cannot be cast to java.util.ArrayList.....
.........................

I not find  way of the solution at the problem for display of the
attributtes.
Regards.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to