Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angulargwt and RCP #12

Open
totoheros opened this issue Aug 19, 2015 · 4 comments
Open

angulargwt and RCP #12

totoheros opened this issue Aug 19, 2015 · 4 comments

Comments

@totoheros
Copy link

Hi,
I have succesfully setup a Todo App with your angulargwt wrapper.

I have tryed to add a RCP communication for sending Todo's from the server side but that's always fail with an 404 error.

Is there something in angulargwt that prevent the standard RPC comunication to work ?

Thanks in avance for any help

Pierre

NB : I have setup my project adding manually 5 jars (angulargwt-1.1.4-SNAPSHOT.jar,com.google.common_1.0.0.201004262004.jar,gwt-elemental-2.6.0.jar,gwtquery-1.4.0.jar,json-20090211.jar)

@h0ru5
Copy link
Owner

h0ru5 commented Aug 19, 2015

I never tried it (always using regular AJAX calls or websockets), but normally, there should not be anything preventing it.

can you see in the debug console what exactly is happening?

by the way: I did merge my changes upstream to cromwellian/angulargwt, so future development might take place there.

@totoheros
Copy link
Author

Thanks for your quick answer.

I have use the same GreetingService generated and the method is getSIPEvents
The error in the console is :

  1. POST http://127.0.0.1:8888/angulargwt_todo/greet 404 (Not Found)
    XMLHttpRequest.java:327
    1. $send_0XMLHttpRequest.java:327
    2. $doSendRequestBuilder.java:418
    3. $sendRequestBuilder.java:242
    4. $doInvokeRemoteServiceProxy.java:372
    5. $finish_0RemoteServiceProxy.java:74
    6. _.getSIPEventsGreetingService_Proxy.java:30
    7. _.initializeTodoController.java:42
    8. (anonymous function)TodoControllerImpl.java:17
    9. apply_0Impl.java:290
    10. entry0Impl.java:354
    11. (anonymous function)Impl.java:93
    12. dangular.js:3720
    13. instantiateangular.js:3731
    14. $getangular.js:6848
    15. (anonymous function)angular.js:6230
    16. rangular.js:311
    17. Iangular.js:6217
    18. hangular.js:5682
    19. hangular.js:5685
    20. hangular.js:5685
    21. hangular.js:5685
    22. (anonymous function)angular.js:5587
    23. (anonymous function)angular.js:1306
    24. $get.h.$evalangular.js:12045
    25. $get.h.$applyangular.js:12145
    26. (anonymous function)angular.js:1304
    27. dangular.js:3720
    28. cangular.js:1302
    29. $bangular.js:1316
    30. $bootstrapAngularApp.java:68
    31. $injectModulesAngularApp.java:57
    32. _.fAngularApp.java:34
    33. $fFunction.java:391
    34. $runCallbacks.java:158
    35. $fireCallbacks.java:120
    36. $resolveDeferred.java:363
    37. _.resolve_0Deferred.java:362
    38. $onSuccessAngularApp.java:89
    39. _.onSuccessAngularApp.java:88
    40. (anonymous function)ScriptInjector.java:271
    41. apply_0Impl.java:290
    42. entry0Impl.java:354
    43. (anonymous function)Impl.java:93

2015-08-19 14:21 GMT+02:00 Johannes Hund [email protected]:

I never tried it (always using regular AJAX calls or websockets), but
normally, there should not be anything preventing it.

can you see in the debug console what exactly is happening?

by the way: I did merge my changes upstream to cromwellian/angulargwt, so
future development might take place there.


Reply to this email directly or view it on GitHub
#12 (comment).

@totoheros
Copy link
Author

I made the smallest possible app : a controller only with a name. The RCP
work and send back the data but I have trouble to update the scope.

Do you have some hint

The debuger whows that I reach the onSuccess :

2015-08-19 14:40 GMT+02:00 129pierre . [email protected]:

Thanks for your quick answer.

I have use the same GreetingService generated and the method is
getSIPEvents
The error in the console is :

  1. POST http://127.0.0.1:8888/angulargwt_todo/greet 404 (Not Found)
    XMLHttpRequest.java:327
    1. $send_0XMLHttpRequest.java:327
    2. $doSendRequestBuilder.java:418
    3. $sendRequestBuilder.java:242
    4. $doInvokeRemoteServiceProxy.java:372
    5. $finish_0RemoteServiceProxy.java:74
    6. _.getSIPEventsGreetingService_Proxy.java:30
    7. _.initializeTodoController.java:42
    8. (anonymous function)TodoControllerImpl.java:17
    9. apply_0Impl.java:290
    10. entry0Impl.java:354
    11. (anonymous function)Impl.java:93
    12. dangular.js:3720
    13. instantiateangular.js:3731
    14. $getangular.js:6848
    15. (anonymous function)angular.js:6230
    16. rangular.js:311
    17. Iangular.js:6217
    18. hangular.js:5682
    19. hangular.js:5685
    20. hangular.js:5685
    21. hangular.js:5685
    22. (anonymous function)angular.js:5587
    23. (anonymous function)angular.js:1306
    24. $get.h.$evalangular.js:12045
    25. $get.h.$applyangular.js:12145
    26. (anonymous function)angular.js:1304
    27. dangular.js:3720
    28. cangular.js:1302
    29. $bangular.js:1316
    30. $bootstrapAngularApp.java:68
    31. $injectModulesAngularApp.java:57
    32. _.fAngularApp.java:34
    33. $fFunction.java:391
    34. $runCallbacks.java:158
    35. $fireCallbacks.java:120
    36. $resolveDeferred.java:363
    37. _.resolve_0Deferred.java:362
    38. $onSuccessAngularApp.java:89
    39. _.onSuccessAngularApp.java:88
    40. (anonymous function)ScriptInjector.java:271
    41. apply_0Impl.java:290
    42. entry0Impl.java:354
    43. (anonymous function)Impl.java:93

2015-08-19 14:21 GMT+02:00 Johannes Hund [email protected]:

I never tried it (always using regular AJAX calls or websockets), but
normally, there should not be anything preventing it.

can you see in the debug console what exactly is happening?

by the way: I did merge my changes upstream to cromwellian/angulargwt, so
future development might take place there.


Reply to this email directly or view it on GitHub
#12 (comment).

@totoheros
Copy link
Author

Social Learning Network with tools to simplify lives of Students & Teachers, together.

Hi,
I've started learning on EduRev now. I thought it might be useful for you too. Below is my profile link.

                                            129pierre .





















                                                             View Platform!

Here are some reasons for you to use EduRev

                                                             Join a Course








                                                            Join 120+ courses for curriculum, competitions, new languages, topics and much more
















                                                                         Study and Test








                                                                            Learn and Test up topics from your curriculum, for competitive exams and more. 70,000+ docs, videos & tests.

















                                                                         Grow your Network








                                                                        Follow friends, teachers and like minded people from 1.5 million+ visitors across the country

You can checkout the platform at www.edurev.in

                                                Contact EduRev: [email protected]



                                                  

                                             

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants