The Artima Developer Community
Sponsored Link

Java Buzz Forum
modern Java/Ajax Apps - where to stop JS coding

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Marc Logemann

Posts: 594
Nickname: loge
Registered: Sep, 2002

Marc Logemann is founder of www.logentis.de a Java consultancy
modern Java/Ajax Apps - where to stop JS coding Posted: Jul 10, 2008 11:56 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Marc Logemann.
Original Post: modern Java/Ajax Apps - where to stop JS coding
Feed Title: Logemann Blog
Feed URL: http://feeds.feedburner.com/LogemannBlog
Feed Description: Marc Logemann's thoughts on java and other stuff
Latest Java Buzz Posts
Latest Java Buzz Posts by Marc Logemann
Latest Posts From Logemann Blog

Advertisement
While evaluating several scenarios how to architect our current project, which should base on Struts2 and YUI, i am starting to understand the obstacles in such a project. And its not Struts related. Essentially it breaks down to the question: What to do in the frontend (here with YUI) and what not.

The easiest way is to just use some complex widgets from an ajax framework (data tables and stuff like this - those get their data via XHR/Json Requests) and code the rest as "normal", meaing, each form fires a new request and validation occurs on server side. So this would be mainly integrating ajax widgets into a JSP page. But things get more complicated when you use also dialogs from the ajax frameworks, then you slowly get into the position where the traditional request/response style from java MVC frameworks no longer work easily.

The bottom line is, i really dont want to put everything into JS. IMO there are a lot of things that should be handled by the server. But if you just use an ajax library and all of its features, very soon you will start realizing that all your java code is a bunch of JSON services.

IMO, architecting an application is much harder when using Ajax heavily. In fact the complete project gets A LOT more complex.

Read: modern Java/Ajax Apps - where to stop JS coding

Topic: Why use Identity Management Grid Control Plug-in ? Previous Topic   Next Topic Topic: Free Webinar on Cloud Computing, Data Integration, and RIAs Next Week, July 9th at 1PM EST from...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use