This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSF and the fly likes Drag and dropping images to another image with richfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Drag and dropping images to another image with richfaces" Watch "Drag and dropping images to another image with richfaces" New topic
Author

Drag and dropping images to another image with richfaces

Juan Manuel Diaz
Ranch Hand

Joined: Mar 23, 2009
Posts: 55
Hi greenhorns!,

I am needing some component (avoiding an applet) in which the user can add to a predefined image, three kind of items: a point, a line or a circle. The idea is to set up a mammography report, in wich the doctor can add those items to the image of the busts.

Do you any idea about how I can do that?

I am thinking in Paint2D component, wich comes with RichFaces 3.0.0 (or later), but I dont know if it could do that for me.

Regards!
JM
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17166
    
  27

RichFaces has extensive drag and drop support, and you can certainly set up a control such that dropping something on it would fire an AJAX event so that the server could do something with it - possibly merging images and re-rendering the updated target image.

For client-side image manipulation, it depends on what exactly you want to do.


An IDE is no substitute for an Intelligent Developer.
Juan Manuel Diaz
Ranch Hand

Joined: Mar 23, 2009
Posts: 55
Hi! Thanks for the reply.

I thought about that, but the thing is: how can i know the exact point in which the image was dropped? So, if i know the coordinates, i can merge the images.

Regards,
JM
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drag and dropping images to another image with richfaces
 
It's not a secret anymore!