incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r965473 - in /sling/trunk/contrib/extensions/gwt/sample: pom.xml src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesServiceAsync.java
Date Mon, 19 Jul 2010 13:33:57 GMT
Author: justin
Date: Mon Jul 19 13:33:56 2010
New Revision: 965473

URL: http://svn.apache.org/viewvc?rev=965473&view=rev
Log:
sample didn't work fully due to mismatched return type

Modified:
    sling/trunk/contrib/extensions/gwt/sample/pom.xml
    sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java
    sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesServiceAsync.java

Modified: sling/trunk/contrib/extensions/gwt/sample/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/gwt/sample/pom.xml?rev=965473&r1=965472&r2=965473&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/gwt/sample/pom.xml (original)
+++ sling/trunk/contrib/extensions/gwt/sample/pom.xml Mon Jul 19 13:33:56 2010
@@ -84,7 +84,7 @@
                             com.google.gwt.user.client.rpc.core.*
                         </DynamicImport-Package>
                         <Sling-Initial-Content>
-                            SLING-INF/content
+                            SLING-INF/content;overwrite:=true
                         </Sling-Initial-Content>
                         <Sling-Bundle-Resources>
                             /gwt

Modified: sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java?rev=965473&r1=965472&r2=965473&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java
(original)
+++ sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/client/Notes.java
Mon Jul 19 13:33:56 2010
@@ -177,13 +177,13 @@ public class Notes implements EntryPoint
         note.setTitle(title);
         note.setText(text);
 
-        service.createNote(note, new AsyncCallback<Note>() {
+        service.createNote(note, new AsyncCallback<String>() {
 
             public void onFailure(Throwable throwable) {
                 Window.alert("Failed to created note: " + throwable.getMessage());
             }
 
-            public void onSuccess(Note o) {
+            public void onSuccess(String o) {
                 getNotes();
             }
         });

Modified: sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesServiceAsync.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesServiceAsync.java?rev=965473&r1=965472&r2=965473&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesServiceAsync.java
(original)
+++ sling/trunk/contrib/extensions/gwt/sample/src/main/java/org/apache/sling/extensions/gwt/sample/service/NotesServiceAsync.java
Mon Jul 19 13:33:56 2010
@@ -31,7 +31,7 @@ import com.google.gwt.user.client.rpc.As
  */
 public interface NotesServiceAsync {
 
-    void createNote(Note note, AsyncCallback<Note> async);
+    void createNote(Note note, AsyncCallback<String> async);
 
     void getNotes(AsyncCallback<ArrayList<Note>> async);
 



Mime
View raw message