Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Drag & Drop feature using GWT

 
Ranch Hand
Posts: 10192
3
Mac PPC Eclipse IDE 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: 10192
3
Mac PPC Eclipse IDE 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/
 
Saloon Keeper
Posts: 2671
130
Google Web Toolkit Eclipse IDE 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: 10192
3
Mac PPC Eclipse IDE 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
Saloon Keeper
Posts: 2671
130
Google Web Toolkit Eclipse IDE 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: 10192
3
Mac PPC Eclipse IDE 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.
 
For my next trick, I'll need the help of a tiny ad ...
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic