Author: nbelaevski
Date: 2008-07-17 12:18:02 -0400 (Thu, 17 Jul 2008)
New Revision: 9666
Modified:
trunk/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java
trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java
Log:
https://jira.jboss.org/jira/browse/RF-3929
Modified: trunk/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java 2008-07-17
15:31:06 UTC (rev 9665)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/UITreeNode.java 2008-07-17
16:18:02 UTC (rev 9666)
@@ -3,8 +3,6 @@
*/
package org.richfaces.component;
-import java.util.Map;
-
import javax.faces.component.UIComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.component.UIViewRoot;
@@ -248,16 +246,6 @@
removeFacesListener(listener);
}
- public Map getAttributes() {
- Map map = super.getAttributes();
-
- if (Boolean.TRUE.equals(map.get(DEFAULT_NODE_FACE_ATTRIBUTE_NAME))) {
- return getUITree().getAttributes();
- }
-
- return map;
- }
-
public void setAcceptedTypes(Object types) {
this.acceptedTypes = types;
}
Modified: trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java
===================================================================
--- trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java 2008-07-17
15:31:06 UTC (rev 9665)
+++ trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java 2008-07-17
16:18:02 UTC (rev 9666)
@@ -433,14 +433,6 @@
}
/**
- * Test method for {@link org.richfaces.component.UITreeNode#getAttributes()}.
- */
- public final void testGetAttributes() {
- assertSame(tree.getAttributes(), tree.getOrCreateDefaultFacet().getAttributes());
- assertNotSame(tree.getAttributes(), treeNode.getAttributes());
- }
-
- /**
* Test method for {@link org.richfaces.component.UITreeNode#getDragValue()}.
*/
public final void testGetDragValue() {