This week's book giveaway is in the Design forum.
We're giving away four copies of Experimentation for Engineers: From A/B testing to Bayesian optimization and have David Sweet on-line!
See this thread for details.
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Drag & Drop feature using GWT

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm looking to develop something like this here http://www.pagebreeze.com/
 
Bartender
Posts: 2910
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2910
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic