You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2010/01/27 19:43:28 UTC

[Myfaces Wiki] Trivial Update of "Tree2" by newacct

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The "Tree2" page has been changed by newacct.
http://wiki.apache.org/myfaces/Tree2?action=diff&rev1=37&rev2=38

--------------------------------------------------

              if (component != null) {
                      HtmlTree tree = (HtmlTree) component;
                      TreeNodeBase node = (TreeNodeBase) tree.getNode();
-                     if (!tree.isNodeExpanded() && node.getChildren().size() == 0) {
+                     if (!tree.isNodeExpanded() && node.getChildren().isEmpty()) {
                          // navigation-view:foo:serverTree:0:0:_id4
                          // tree.getNódeId() == "0:1:0"
                          // node.getIdentifier() == "car_id=7"
@@ -419, +419 @@

  
  	public List getChildren() {
               // if there are no children, try and retrieve them
- 		if (super.getChildren().size() == 0) {
+ 		if (super.getChildren().isEmpty()) {
                     // create dummy tree nodes for example
                     int id = Integer.parseInt(getIdentifier());
  			for(int i = 0; i < id; i++) {