This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes GWT and the fly likes Drag & Drop feature using GWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Drag & Drop feature using GWT" Watch "Drag & Drop feature using GWT" New topic
Author

Drag & Drop feature using GWT

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

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?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

I'm looking to develop something like this here http://www.pagebreeze.com/
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

here is a good tutorial on it:
http://chaoticjava.com/posts/drag-and-drop-in-gwt-the-how-to/

My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

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
Ranch Hand

Joined: Jan 12, 2009
Posts: 917

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

Joined: Sep 26, 2006
Posts: 9344
    
    2

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Drag & Drop feature using GWT
 
Similar Threads
Suggestion Needed - Drag & Drop UI Elements
GWT and netbeans
HTML editor and design tool
SVG Components
Is there any canvas like component in JSF?