Spring-Ajax samples needed - ajax

i have a web application that uses spring framework
and i want to use ajax in some pages (adding/deleting stuff from page,db without refreshing the whole page)
tutorials and samples are needed for such stuff

The latest version of Spring MVC may be what you are looking for. Here's a good summary of Ajax improvements in the latest version: http://blog.springsource.com/2010/01/25/ajax-simplifications-in-spring-3-0/. This blog links to the sample code used, which you can download and run to see a good working example.
More comprehensive documentation can found here: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html.

Related

Why isn't the Spring Statemachine project listed on the home page of the website?

I recently thought of deep-diving into the various Spring projects, after seeing first-hand the tremendous utility provided to a project in my workplace. We used the Spring Statemachine project to implement a shopping cart lifecycle. This was a suggestion made by one of my colleagues while looking up code samples to implement the State Pattern in Java. Additionally, I've independently used Spring for Android to implement my first Android App.
However, on visiting the Spring homepage, I wasn't able to see the Spring Statemachine project listed there. Additionally, it wasn't mentioned in the offline documentation, either, despite there being a copy of the same.
I have two questions from this:
Where could one find a full listing of all the various projects provided by Spring? I tried consulting their Github page, but (for example) a filter on repos by "Kafka" returned two different repos (FYI, the project page redirects to the second URL). I was hoping for a comprehensive source like the Wikipedia page on all Apache projects
Why isn't the Statemachine project listed on the homepage? Is there some criteria which results in some projects being listed there, and some not?
Thank You
It's on its way to the main projects page as not long ago it was still kept in incubation. We're just waiting for a logo.
You generally see all projects which have created their own page in docs->Reference Documentation reference docs

Liferay : Any one has updated jquery.tweet.js?

Has any one used and updated jquery.tweet.js for liferay 6.1
after following important note from seaofclouds.com,
Important note about Twitter's API changes
Twitter has discontinued its unauthenticated v1.0 API,
so this widget has stopped working as of 2013-06-11.
Twitter wants your only option for on-page widgets to be
their own Embedded Timelines, but there are workarounds
which involve installing server-side code to support this widget.
Please see this discussion for more details.
If yes, let me know steps to do ?
I am also trying, If done i ll update
Till then waiting for reply, might be save my time.
Thanks
Basic wrapper for Seaofclouds / Tweet.js that incorporates functionality with Twitter's v1.1 API
https://github.com/StanScates/Tweet.js-Mod

ASP.NET Web-API Help-API Generator?

I am wondering if anyone can point me to which Web-Api Help Generator I should use.
I found this post but it is already a year old and seems to be outdated.
I think ApiExplorer is now Web API Help.
The post also talks about Swagger which from some demos looks a lot nicer and seems like you can do like post requests and such but I am unsure if it still in development as it's been like a year since the last update.
Anyone have any experience with either of them?
The "Web API Help Page" package (Microsoft.AspNet.WebApi.HelpPage) is built on top of ApiExplorer.
Web API Help Page generates documentation pages and adds them to your project.
ApiExplorer gives you a lower-level API that just gives you the API descriptions, which you can use to create documentation.
See: http://www.asp.net/web-api/overview/creating-web-apis/creating-api-help-pages
I haven't used Swagger. From the readme, it's also built on top of ApiExplorer.

Play! 2.0 with Scala and AJAX tutorial/example

I am looking for a clean vanilla example of the play framework with ajax. I would like to build a a dependent dropdown and a chained select. All the tutorials on the web I have found uses php.
The only sample that has ajax makes use of coffee script.
Is there one out there somewhere?
You don't really need a Scala tutorial for that, you can follow the PHP ones.
The difference is that your data (responses) will be returned by Scala routes instead of PHP scripts.
To learn more about AJAX calls in Play just examine a zentasks sample delivered to you together with Play's code. There are samples for both Scala and Java versions and all you have to test them is to go to the folder of selected sample via commandline and run/start it as a common Play's application.
Preview

What is the best way to do ajax file uploads in Rails 3.x

What is the best way to achieve ajax file uploads in Rails. I did alot of research, did some testing with remote forms and searched for some jquery plugins. All the plugins i found seemed outdated and i don't know which one will play nice with rails 3.x. Do you guys have any advice on this topic?
Thanks
AFAIK you'll have to be browser specific at the moment. The various browsers are implementing file APIs that allow javascript to read files from the machine. Previously, there was no real way to achieve AJAX file uploading (I think it was for security reasons, but I'm not sure on all the details). I've implemented drag/drop AJAX file uploading before; I can't remember the exact details, but here are some of the resources I used. If I get a chance, I'll see if I can find my code and how I implemented it.
http://demo.tutorialzine.com/2011/09/html5-file-upload-jquery-php
http://www.skuunk.com/2011/04/reading-ajax-xhr-file-uploads-in.html
http://www.centurion-project.org/articles/html5-multiple-file-upload-with-progress-bar
https://developer.mozilla.org/en/Using_files_from_web_applications (best - Mozilla docs)
The Mozilla docs are very useful and got me most of the way there.

Resources