[Yanel-commits] rev 33446 -
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client
michi at wyona.com
michi at wyona.com
Sun Mar 16 00:08:35 CET 2008
Author: michi
Date: 2008-03-16 00:08:34 +0100 (Sun, 16 Mar 2008)
New Revision: 33446
Modified:
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java
Log:
get label
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java 2008-03-15 22:23:11 UTC (rev 33445)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java 2008-03-15 23:08:34 UTC (rev 33446)
@@ -71,8 +71,7 @@
Element rightsElement = getFirstChildElement(rootElement, "rights");
NodeList rightElements = rightsElement.getElementsByTagName("right");
for (int i = 0; i < rightElements.getLength(); i++) {
- // TODO: Get actual label
- String label = ((Element) rightElements.item(i)).getAttribute("id");
+ String label = ((Element) rightElements.item(i)).getFirstChild().getNodeValue();
rights.add(new Right(((Element) rightElements.item(i)).getAttribute("id"), label));
//Window.alert("Right: " + ((Right) rights.elementAt(i)).getId() + ", " + ((Right) rights.elementAt(i)).getLabel() );
}
More information about the Yanel-commits
mailing list