Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drag & Drop feature using GWT

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I would like to do something like the following.

(1) Create a we page with canvas and a palette. The palette will hold the HTML UI elements like Textbox, Textarea, Radio buttons and so on.
(2) The user can drag and drop the UI elements to the canvas.
(3) The user specifies the properties of the droppped UI elements (say for example, if the user has dropped a Submit button then he can right click on it and specify what should happen during onClick of it)
(4) The user then saves the form which ultimately gets saved as a HTML file in the File system

Any ideas on how this could be done using GWT?
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking to develop something like this here http://www.pagebreeze.com/
 
salvin francis
Bartender
Posts: 1280
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is a good tutorial on it:
http://chaoticjava.com/posts/drag-and-drop-in-gwt-the-how-to/
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Salvin,

Thanks for the reply. I have another question in my mind. The JDK environment that we have is 1.4 and is GWT (the actual GWT version with the Drag & Drop support) compatible with JDK 1.4?
 
salvin francis
Bartender
Posts: 1280
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This page:
http://code.google.com/intl/en/webtoolkit/gettingstarted.html

says:
Prerequisites
You will need the Java SDK version 1.5 or later.


I havent tried it on java 1.4 so I do not know that GWT 2.0 (the current version) is compatible with it.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but only for compilation purposes we need to have JDK 1.5 compatibility. The VM that we have on our servers is 1.4 and since the compiled output of GWT is just javascript, I guess it does not matter much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic