[Yanel-commits] rev 32471 - in
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor:
. client
michi at wyona.com
michi at wyona.com
Mon Feb 25 22:22:07 CET 2008
Author: michi
Date: 2008-02-25 22:22:06 +0100 (Mon, 25 Feb 2008)
New Revision: 32471
Modified:
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/AccessPolicyEditor.gwt.xml
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java
Log:
xml parsing started
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/AccessPolicyEditor.gwt.xml
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/AccessPolicyEditor.gwt.xml 2008-02-25 21:01:58 UTC (rev 32470)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/AccessPolicyEditor.gwt.xml 2008-02-25 21:22:06 UTC (rev 32471)
@@ -17,6 +17,7 @@
<inherits name="com.google.gwt.user.User"/>
<inherits name="com.google.gwt.http.HTTP" />
-->
+ <inherits name="com.google.gwt.xml.XML" />
<inherits name="org.wyona.yanel.gwt.YanelCore" />
<entry-point class="org.wyona.yanel.gwt.accesspolicyeditor.client.AccessPolicyEditor"/>
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java 2008-02-25 21:01:58 UTC (rev 32470)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AsynchronousIdentitiesAndRightsGetter.java 2008-02-25 21:22:06 UTC (rev 32471)
@@ -19,6 +19,9 @@
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.Response;
+import com.google.gwt.xml.client.Element;
+import com.google.gwt.xml.client.XMLParser;
+import com.google.gwt.user.client.Window;
import java.util.Vector;
@@ -41,9 +44,11 @@
* Also see src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/sample-identities-and-usecases.xml
*/
public void onResponseReceived(final Request request, final Response response) {
- // TODO
+ // TODO: Parse response XML
// http://groups.google.com/group/Google-Web-Toolkit/msg/a6f399bc4d46f795
// http://code.google.com/p/bunsenandbeaker/wiki/DevGuideXML
+ Element rootElement = XMLParser.parse(response.getText()).getDocumentElement();
+ Window.alert("Root element: " + rootElement.getTagName());
users.add("dz");
}
More information about the Yanel-commits
mailing list