-
Oct 22nd, 2010, 04:23 AM
#1
Spring Surf and GWT
Hi experts!
Is there a way to use the Google Web Toolkit with Spring Surf?
It would be very nice to use GWT for the client UI and Spring Surf Webscripts (with Alfresco authentication) on server side.
Any ideas? (Im a GWT-newbie)
regards!
-
Oct 22nd, 2010, 06:20 AM
#2
It's not something I've personally looked at. But an example of setting up a standalone SpringWebScripts tier for use as a pure REST API (could be consumed by anything, including GWT I imagine...) is mentioned here:
http://blogs.alfresco.com/wp/ewinlof...ng-webscripts/
Thanks,
Kev
-
Oct 26th, 2010, 05:39 AM
#3
Hi mesx,
You asked 2 questions in your post, and Kev has answered the second (which I suspect is the one you really care about).
But he asked me to do some research into GWT as it was something neither of us knew a great deal about to address your question of whether you can use GWT with Spring Surf.
Given that GWT compiles Java code into HTML/JavaScript files that represent entire pages I don't think that it would be possible to use it with Spring Surf without extending the GWT compiler (as you'd want to divide pages into templates/chrome/components, generate the associated XML configuration files and then include the relevant Freemarker directives in the output).
If you want to use GWT as your client to access Alfresco resources then using a pure WebScript REST API is really the only way to go for a simple solution. Erik's blog should be all you need to get you started with defining the API, and a Google search reveals plenty of GWT tutorials on how to invoke that REST API.
Regards,
Dave
-
Nov 4th, 2010, 05:42 PM
#4
Thank you for your response.
My idea was to use some useful tools provided by spring surf with GWT.
For example the user-handling with login.
At the moment im trying to install SpringSurf in my GWT project and copy the GWT created html file as a ftl file "behind" the SpringSurf Servlet to provide User Authentication against Alfresco (Maybe u know a better solution?).
Also the generated javascript files should be protected by user Authentication.
My current problem is to install the SpringSurf-Roo-Addon (1.0.0-RC2) to Roo 1.1.0RELEASE...
I'll do some more searching arround the web and poste an extra thread if i can't find any solution.
best regards
Manuel
-
Nov 23rd, 2010, 07:28 AM
#5
Looks like Roo 1.1.0 is based on OSGI. SpringSurf-Roo-Addon 1.0.0-RC2 is not packaged to run in OSGI container. Use older version of Roo 1.0.2 and you will be able to install SpringSurf-Roo-Addon 1.0.0-RC2.
-Rao
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules